Plugin Directory

Changeset 1097917


Ignore:
Timestamp:
02/24/2015 08:52:36 AM (11 years ago)
Author:
Travelgrove
Message:

Small changes to make plugin compatible with jQuery 1.11.2

Location:
travel-search
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • travel-search/tags/1.4.2/js/autosuggestion.dev.js

    r1094267 r1097917  
    130130    // coords.w = pointer.fld.offsetWidth;
    131131    //calculating the position of the input field: x,y + the height of the input field  + the offset y setted in the params
    132     if(this.opt.frameForIE && jQuery.browser.msie && parseInt(jQuery.browser.version)<7) {
     132    if(this.opt.frameForIE && jQuery.browser && jQuery.browser.msie && parseInt(jQuery.browser.version)<7) {
    133133        this.iframe = jQuery('<iframe src="about:blank" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" style="position:absolute;background:#fff;z-index:399;">');
    134134    } else {
  • travel-search/tags/1.4.2/js/autosuggestion.min.js

    r1094267 r1097917  
    330==c?b+(key+"="+a.fld.value):b+("&"+key+"="+this.ajaxParams[key]),c++;a.ajaxObject.data=b;return!0},format:function(a){return a.innerHTML.replace(/<\/?[a-z]+>/gi,"")},errorHandler:function(a){}};void 0==parentObject.AutoSuggest&&(parentObject.AutoSuggest={});
    44parentObject.AutoSuggest=function(a,c){if(!(this.fld=jQuery("#"+a)[0]))return!1;this.fld.setAttribute("autocomplete","off");this.sInput="";this.nInputChars=0;this.aSuggestions={};this.defText=this.fld.value;this.highlighted=null;this.opt=c?cloneObject(c):{};for(k in defaultParams)typeof this.opt[k]!=typeof defaultParams[k]&&(this.opt[k]=defaultParams[k]);var b=this;this.ajaxObject={url:this.opt.script,global:!1,type:this.opt.meth,dataType:"text",data:this.opt.ajaxParams,error:function(a,b,c){},success:function(a){b.generateList(a)},
    5 errorFlag:0,complete:function(a,b){}};this.coords=getPos(this.fld);this.coords.y+=this.fld.offsetHeight+this.opt.offsety;this.opt.frameForIE&&jQuery.browser.msie&&7>parseInt(jQuery.browser.version)?this.iframe=jQuery('<iframe src="about:blank" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" style="position:absolute;background:#fff;z-index:399;">'):this.opt.frameForIE=!1;this.blurTimer=0;b=this;this.isFocused=!0;this.fld.onkeypress=function(a){return b.onKeyPress(a)};this.fld.onkeyup=
     5errorFlag:0,complete:function(a,b){}};this.coords=getPos(this.fld);this.coords.y+=this.fld.offsetHeight+this.opt.offsety;this.opt.frameForIE&&jQuery.browser&&jQuery.browser.msie&&7>parseInt(jQuery.browser.version)?this.iframe=jQuery('<iframe src="about:blank" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" style="position:absolute;background:#fff;z-index:399;">'):this.opt.frameForIE=!1;this.blurTimer=0;b=this;this.isFocused=!0;this.fld.onkeypress=function(a){return b.onKeyPress(a)};this.fld.onkeyup=
    66function(a){return b.onKeyUp(a)};this.fld.onblur=function(a){b.isFocused=!1;b.fld.value&&(b.blurTimer=setTimeout(function(){b.ajaxObject.errorFlag&&b.opt.errorHandler(this);b.opt.autoSelect?b.setHighlightedValue():b.clearSuggestions(a);b.highlighted=null},b.opt.delay/2))};this.fld.onfocus=function(a){b.highlighted=null;b.isFocused=!0};this.req={};this.fld.autoSuggest=this};
    77parentObject.AutoSuggest.prototype.onKeyUp=function(a){a=window.event?window.event.keyCode:a.keyCode;var c=!0;switch(a){case 38:this.changeHighlight(a);c=!1;break;case 40:this.changeHighlight(a);c=!1;break;case 13:break;default:this.getSuggestions()}return c};parentObject.AutoSuggest.prototype.onKeyPress=function(a){a=window.event?window.event.keyCode:a.keyCode;var c=!0;this.isFocused=!0;switch(a){case 13:this.setHighlightedValue();c=!1;break;case 27:this.setHighlightedValue()}return c};
  • travel-search/tags/1.4.2/js/tg_searchboxes.dev.js

    r1094267 r1097917  
    8282        @date   2013-JUL-03
    8383        @author Tibi    */
    84     onClickPopupHandling    = jQuery.browser.msie || windowOpenerObj.isChromeMinVer(30);
     84    onClickPopupHandling    = (jQuery.browser && jQuery.browser.msie) || windowOpenerObj.isChromeMinVer(30);
    8585}
    8686
  • travel-search/tags/1.4.2/js/tg_searchboxes.min.js

    r1094267 r1097917  
    11(function(f){function I(){p=new TGSB_WindowOpener({chromePPBmode:window.chrome?!0:!1,popUnder:!1,style:"cascade",position:{left:0,top:0,width:460,height:485},buildPlaceHolderUrl:function(a){},buildPlaceHolderHtml:function(a){a=f(a);var e=a.parents(".tg_searchbox:eq(0)").attr("id"),d=a.attr("rel").replace(/[^0-9]+/g,""),c=a.attr("title"),b=a.children("img").attr("src").replace(/^.*\/([^\/]+)$/,"$1");a=t(a,!1,!1)?"":w(a,c,d);e="<script type='text/javascript'>var mName='"+c+"';var mId="+parseInt(d)+
    2 ";var mLogo='"+b+"';var sb='"+e+"';var redirectLink='"+a+"'\x3c/script>";return"<html><head><title>Opening "+c+"</title>"+e+("<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'>\x3c/script><script type='text/javascript' src='"+TG_Searchboxes_Variables.plugin_url+"/js/placeholder.min.js'>\x3c/script>")+"</head><body></body></html>"},buildWindowName:function(a){a=f(a);var e=a.attr("rel").replace(/[^0-9]+/g,"");return a.attr("title")+"_"+e}});x=f.browser.msie||
     2";var mLogo='"+b+"';var sb='"+e+"';var redirectLink='"+a+"'\x3c/script>";return"<html><head><title>Opening "+c+"</title>"+e+("<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'>\x3c/script><script type='text/javascript' src='"+TG_Searchboxes_Variables.plugin_url+"/js/placeholder.min.js'>\x3c/script>")+"</head><body></body></html>"},buildWindowName:function(a){a=f(a);var e=a.attr("rel").replace(/[^0-9]+/g,"");return a.attr("title")+"_"+e}});x=(f.browser&&f.browser.msie)||
    33p.isChromeMinVer(30)}function u(){f(this).removeClass("err").unbind("focus",u)}function y(a){this.value==this.defaultValue?this.value="":this.select()}function z(a){""==this.value&&(this.value=this.defaultValue)}function A(a,e){f(function(){var d=f(e),c=f("span#"+a);if(0==c.length)return!1;c.replaceWith(d);B(d)})}function t(a,e,d){e="undefined"!=typeof e&&e?!0:!1;d="undefined"!=typeof d&&d?!0:!1;var c="",b="",g=/^.*\s\(...\)$/i,h=/[0-9]{2}\/[0-9]{2}\/[0-9]{4}/;a=f(a).parents("form");var k;a.hasClass("hotels")||
    44(k=a.find("input.asFrom"));var m=a.find("input.asTo"),v=a.find("input.depDate"),q=a.find("input.retDate"),n=new Date,l=v.datepicker("getDate"),p=q.datepicker("getDate");if(!a.hasClass("cruises")){if(a.hasClass("flights")){var s=a.find("input[name=oneway]"),r=!1;"undefined"!=typeof s.get(0)&&"undefined"!=typeof s.get(1)&&(s.get(0),r=s.get(1).id,r=f("#"+r).attr("checked"))}a.hasClass("hotels")||g.test(k.val())||(c+="\t- a departure location\n",b+="#"+k.get(0).id+",");a.hasClass("hotels")?3>m.val().length&&
  • travel-search/trunk/js/autosuggestion.dev.js

    r1087931 r1097917  
    130130    // coords.w = pointer.fld.offsetWidth;
    131131    //calculating the position of the input field: x,y + the height of the input field  + the offset y setted in the params
    132     if(this.opt.frameForIE && jQuery.browser.msie && parseInt(jQuery.browser.version)<7) {
     132    if(this.opt.frameForIE && jQuery.browser && jQuery.browser.msie && parseInt(jQuery.browser.version)<7) {
    133133        this.iframe = jQuery('<iframe src="about:blank" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" style="position:absolute;background:#fff;z-index:399;">');
    134134    } else {
  • travel-search/trunk/js/autosuggestion.min.js

    r1087931 r1097917  
    330==c?b+(key+"="+a.fld.value):b+("&"+key+"="+this.ajaxParams[key]),c++;a.ajaxObject.data=b;return!0},format:function(a){return a.innerHTML.replace(/<\/?[a-z]+>/gi,"")},errorHandler:function(a){}};void 0==parentObject.AutoSuggest&&(parentObject.AutoSuggest={});
    44parentObject.AutoSuggest=function(a,c){if(!(this.fld=jQuery("#"+a)[0]))return!1;this.fld.setAttribute("autocomplete","off");this.sInput="";this.nInputChars=0;this.aSuggestions={};this.defText=this.fld.value;this.highlighted=null;this.opt=c?cloneObject(c):{};for(k in defaultParams)typeof this.opt[k]!=typeof defaultParams[k]&&(this.opt[k]=defaultParams[k]);var b=this;this.ajaxObject={url:this.opt.script,global:!1,type:this.opt.meth,dataType:"text",data:this.opt.ajaxParams,error:function(a,b,c){},success:function(a){b.generateList(a)},
    5 errorFlag:0,complete:function(a,b){}};this.coords=getPos(this.fld);this.coords.y+=this.fld.offsetHeight+this.opt.offsety;this.opt.frameForIE&&jQuery.browser.msie&&7>parseInt(jQuery.browser.version)?this.iframe=jQuery('<iframe src="about:blank" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" style="position:absolute;background:#fff;z-index:399;">'):this.opt.frameForIE=!1;this.blurTimer=0;b=this;this.isFocused=!0;this.fld.onkeypress=function(a){return b.onKeyPress(a)};this.fld.onkeyup=
     5errorFlag:0,complete:function(a,b){}};this.coords=getPos(this.fld);this.coords.y+=this.fld.offsetHeight+this.opt.offsety;this.opt.frameForIE&&jQuery.browser&&jQuery.browser.msie&&7>parseInt(jQuery.browser.version)?this.iframe=jQuery('<iframe src="about:blank" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" style="position:absolute;background:#fff;z-index:399;">'):this.opt.frameForIE=!1;this.blurTimer=0;b=this;this.isFocused=!0;this.fld.onkeypress=function(a){return b.onKeyPress(a)};this.fld.onkeyup=
    66function(a){return b.onKeyUp(a)};this.fld.onblur=function(a){b.isFocused=!1;b.fld.value&&(b.blurTimer=setTimeout(function(){b.ajaxObject.errorFlag&&b.opt.errorHandler(this);b.opt.autoSelect?b.setHighlightedValue():b.clearSuggestions(a);b.highlighted=null},b.opt.delay/2))};this.fld.onfocus=function(a){b.highlighted=null;b.isFocused=!0};this.req={};this.fld.autoSuggest=this};
    77parentObject.AutoSuggest.prototype.onKeyUp=function(a){a=window.event?window.event.keyCode:a.keyCode;var c=!0;switch(a){case 38:this.changeHighlight(a);c=!1;break;case 40:this.changeHighlight(a);c=!1;break;case 13:break;default:this.getSuggestions()}return c};parentObject.AutoSuggest.prototype.onKeyPress=function(a){a=window.event?window.event.keyCode:a.keyCode;var c=!0;this.isFocused=!0;switch(a){case 13:this.setHighlightedValue();c=!1;break;case 27:this.setHighlightedValue()}return c};
  • travel-search/trunk/js/tg_searchboxes.dev.js

    r1044744 r1097917  
    8282        @date   2013-JUL-03
    8383        @author Tibi    */
    84     onClickPopupHandling    = jQuery.browser.msie || windowOpenerObj.isChromeMinVer(30);
     84    onClickPopupHandling    = (jQuery.browser && jQuery.browser.msie) || windowOpenerObj.isChromeMinVer(30);
    8585}
    8686
  • travel-search/trunk/js/tg_searchboxes.min.js

    r1044744 r1097917  
    11(function(f){function I(){p=new TGSB_WindowOpener({chromePPBmode:window.chrome?!0:!1,popUnder:!1,style:"cascade",position:{left:0,top:0,width:460,height:485},buildPlaceHolderUrl:function(a){},buildPlaceHolderHtml:function(a){a=f(a);var e=a.parents(".tg_searchbox:eq(0)").attr("id"),d=a.attr("rel").replace(/[^0-9]+/g,""),c=a.attr("title"),b=a.children("img").attr("src").replace(/^.*\/([^\/]+)$/,"$1");a=t(a,!1,!1)?"":w(a,c,d);e="<script type='text/javascript'>var mName='"+c+"';var mId="+parseInt(d)+
    2 ";var mLogo='"+b+"';var sb='"+e+"';var redirectLink='"+a+"'\x3c/script>";return"<html><head><title>Opening "+c+"</title>"+e+("<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'>\x3c/script><script type='text/javascript' src='"+TG_Searchboxes_Variables.plugin_url+"/js/placeholder.min.js'>\x3c/script>")+"</head><body></body></html>"},buildWindowName:function(a){a=f(a);var e=a.attr("rel").replace(/[^0-9]+/g,"");return a.attr("title")+"_"+e}});x=f.browser.msie||
     2";var mLogo='"+b+"';var sb='"+e+"';var redirectLink='"+a+"'\x3c/script>";return"<html><head><title>Opening "+c+"</title>"+e+("<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'>\x3c/script><script type='text/javascript' src='"+TG_Searchboxes_Variables.plugin_url+"/js/placeholder.min.js'>\x3c/script>")+"</head><body></body></html>"},buildWindowName:function(a){a=f(a);var e=a.attr("rel").replace(/[^0-9]+/g,"");return a.attr("title")+"_"+e}});x=(f.browser&&f.browser.msie)||
    33p.isChromeMinVer(30)}function u(){f(this).removeClass("err").unbind("focus",u)}function y(a){this.value==this.defaultValue?this.value="":this.select()}function z(a){""==this.value&&(this.value=this.defaultValue)}function A(a,e){f(function(){var d=f(e),c=f("span#"+a);if(0==c.length)return!1;c.replaceWith(d);B(d)})}function t(a,e,d){e="undefined"!=typeof e&&e?!0:!1;d="undefined"!=typeof d&&d?!0:!1;var c="",b="",g=/^.*\s\(...\)$/i,h=/[0-9]{2}\/[0-9]{2}\/[0-9]{4}/;a=f(a).parents("form");var k;a.hasClass("hotels")||
    44(k=a.find("input.asFrom"));var m=a.find("input.asTo"),v=a.find("input.depDate"),q=a.find("input.retDate"),n=new Date,l=v.datepicker("getDate"),p=q.datepicker("getDate");if(!a.hasClass("cruises")){if(a.hasClass("flights")){var s=a.find("input[name=oneway]"),r=!1;"undefined"!=typeof s.get(0)&&"undefined"!=typeof s.get(1)&&(s.get(0),r=s.get(1).id,r=f("#"+r).attr("checked"))}a.hasClass("hotels")||g.test(k.val())||(c+="\t- a departure location\n",b+="#"+k.get(0).id+",");a.hasClass("hotels")?3>m.val().length&&
Note: See TracChangeset for help on using the changeset viewer.