Home
last modified time | relevance | path

Searched refs:proxy (Results 1 – 25 of 49) sorted by relevance

12

/template/bootstrap3/assets/typeahead/
H A Dbootstrap3-typeahead.min.js1 (function(a,b){if(typeof module!=="undefined"&&module.exports){module.exports=b(require("jquery"))}else{if(typeof define==="function"&&define.amd){define(["jquery"],function(c){return b(c)})}else{b(a.jQuery)}}}(this,function(b){var c=function(e,d){this.$element=b(e);this.options=b.extend({},c.defaults,d);this.matcher=this.options.matcher||this.matcher;this.sorter=this.options.sorter||this.sorter;this.select=this.options.select||this.select;this.autoSelect=typeof this.options.autoSelect=="boolean"?this.options.autoSelect:true;this.highlighter=this.options.highlighter||this.highlighter;this.render=this.options.render||this.render;this.updater=this.options.updater||this.updater;this.displayText=this.options.displayText||this.displayText;this.itemLink=this.options.itemLink||this.itemLink;this.itemTitle=this.options.itemTitle||this.itemTitle;this.followLinkOnSelect=this.options.followLinkOnSelect||this.followLinkOnSelect;this.source=this.options.source;this.delay=this.options.delay;this.theme=this.options.theme&&this.options.themes&&this.options.themes[this.options.theme]||c.defaults.themes[c.defaults.theme];this.$menu=b(this.options.menu||this.theme.menu);this.$appendTo=this.options.appendTo?b(this.options.appendTo):null;this.fitToElement=typeof this.options.fitToElement=="boolean"?this.options.fitToElement:false;this.shown=false;this.listen();this.showHintOnFocus=typeof this.options.showHintOnFocus=="boolean"||this.options.showHintOnFocus==="all"?this.options.showHintOnFocus:false;this.afterSelect=this.options.afterSelect;this.afterEmptySelect=this.options.afterEmptySelect;this.addItem=false;this.value=this.$element.val()||this.$element.text();this.keyPressed=false;this.focused=this.$element.is(":focus");this.changeInputOnSelect=this.options.changeInputOnSelect||this.changeInputOnSelect;this.changeInputOnMove=this.options.changeInputOnMove||this.changeInputOnMove;this.openLinkInNewTab=this.options.openLinkInNewTab||this.openLinkInNewTab;this.selectOnBlur=this.options.selectOnBlur||this.selectOnBlur;this.showCategoryHeader=this.options.showCategoryHeader||this.showCategoryHeader};c.prototype={constructor:c,setDefault:function(e){this.$element.data("active",e);if(this.autoSelect||e){var d=this.updater(e);if(!d){d=""}this.$element.val(this.displayText(d)||d).text(this.displayText(d)||d).change();this.afterSelect(d)}return this.hide()},select:function(){var e=this.$menu.find(".active").data("value");this.$element.data("active",e);if(this.autoSelect||e){var d=this.updater(e);if(!d){d=""}if(this.changeInputOnSelect){this.$element.val(this.displayText(d)||d).text(this.displayText(d)||d).change()}if(this.followLinkOnSelect&&this.itemLink(e)){if(this.openLinkInNewTab){window.open(this.itemLink(e),"_blank")}else{document.location=this.itemLink(e)}this.afterSelect(d)}else{if(this.followLinkOnSelect&&!this.itemLink(e)){this.afterEmptySelect(d)}else{this.afterSelect(d)}}}else{this.afterEmptySelect()}return this.hide()},updater:function(d){return d},setSource:function(d){this.source=d},show:function(){var k=b.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});var h=typeof this.options.scrollHeight=="function"?this.options.scrollHeight.call():this.options.scrollHeight;var g;if(this.shown){g=this.$menu}else{if(this.$appendTo){g=this.$menu.appendTo(this.$appendTo);this.hasSameParent=this.$appendTo.is(this.$element.parent())}else{g=this.$menu.insertAfter(this.$element);this.hasSameParent=true}}if(!this.hasSameParent){g.css("position","fixed");var j=this.$element.offset();k.top=j.top;k.left=j.left}var e=b(g).parent().hasClass("dropup");var d=e?"auto":(k.top+k.height+h);var f=b(g).hasClass("dropdown-menu-right");var i=f?"auto":k.left;g.css({top:d,left:i}).show();if(this.options.fitToElement===true){g.css("width",this.$element.outerWidth()+"px")}this.shown=true;return this},hide:function(){this.$menu.hide();this.shown=false;return this},lookup:function(d){if(typeof(d)!="undefined"&&d!==null){this.query=d}else{this.query=this.$element.val()}if(this.query.length<this.options.minLength&&!this.options.showHintOnFocus){return this.shown?this.hide():this}var e=b.proxy(function(){if(b.isFunction(this.source)&&this.source.length===3){this.source(this.query,b.proxy(this.process,this),b.proxy(this.process,this))}else{if(b.isFunction(this.source)){this.source(this.query,b.proxy(this.process,this))}else{if(this.source){this.process(this.source)}}}},this);clearTimeout(this.lookupWorker);this.lookupWorker=setTimeout(e,this.delay)},process:function(d){var e=this;d=b.grep(d,function(f){return e.matcher(f)});d=this.sorter(d);if(!d.length&&!this.options.addItem){return this.shown?this.hide():this}if(d.length>0){this.$element.data("active",d[0])}else{this.$element.data("active",null)}if(this.options.items!="all"){d=d.slice(0,this.options.items)}if(this.options.addItem){d.push(this.options.addItem)}return this.render(d).show()},matcher:function(e){var d=this.displayText(e);return ~d.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(f){var g=[];var e=[];var d=[];var i;while((i=f.shift())){var h=this.displayText(i);if(!h.toLowerCase().indexOf(this.query.toLowerCase())){g.push(i)}else{if(~h.indexOf(this.query)){e.push(i)}else{d.push(i)}}}return g.concat(e,d)},highlighter:function(h){var l=this.query;if(l===""){return h}var j=h.match(/(>)([^<]*)(<)/g);var k=[];var e=[];var f;if(j&&j.length){for(f=0;f<j.length;++f){if(j[f].length>2){k.push(j[f])}}}else{k=[];k.push(h)}l=l.replace((/[\(\)\/\.\*\+\?\[\]]/g),function(i){return"\\"+i});var g=new RegExp(l,"g");var d;for(f=0;f<k.length;++f){d=k[f].match(g);if(d&&d.length>0){e.push(k[f])}}for(f=0;f<e.length;++f){h=h.replace(e[f],e[f].replace(g,"<strong>$&</strong>"))}return h},render:function(e){var g=this;var d=this;var f=false;var i=[];var h=g.options.separator;b.each(e,function(j,k){if(j>0&&k[h]!==e[j-1][h]){i.push({__type:"divider"})}if(g.options.showCategoryHeader){if(k[h]&&(j===0||k[h]!==e[j-1][h])){i.push({__type:"category",name:k[h]})}}i.push(k)});e=b(i).map(function(j,k){if((k.__type||false)=="category"){return b(g.options.headerHtml||g.theme.headerHtml).text(k.name)[0]}if((k.__type||false)=="divider"){return b(g.options.headerDivider||g.theme.headerDivider)[0]}var l=d.displayText(k);j=b(g.options.item||g.theme.item).data("value",k);j.find(g.options.itemContentSelector||g.theme.itemContentSelector).addBack(g.options.itemContentSelector||g.theme.itemContentSelector).html(g.highlighter(l,k));if(g.options.followLinkOnSelect){j.find("a").attr("href",d.itemLink(k))}j.find("a").attr("title",d.itemTitle(k));if(l==d.$element.val()){j.addClass("active");d.$element.data("active",k);f=true}return j[0]});if(this.autoSelect&&!f){e.filter(":not(.dropdown-header)").first().addClass("active");this.$element.data("active",e.first().data("value"))}this.$menu.html(e);return this},displayText:function(d){return typeof d!=="undefined"&&typeof d.name!="undefined"?d.name:d},itemLink:function(d){return null},itemTitle:function(d){return null},next:function(f){var g=this.$menu.find(".active").removeClass("active");var e=g.next();if(!e.length){e=b(this.$menu.find(b(this.options.item||this.theme.item).prop("tagName"))[0])}while(e.hasClass("divider")||e.hasClass("dropdown-header")){e=e.next()}e.addClass("active");var d=this.updater(e.data("value"));if(this.changeInputOnMove){this.$element.val(this.displayText(d)||d)}},prev:function(f){var g=this.$menu.find(".active").removeClass("active");var e=g.prev();if(!e.length){e=this.$menu.find(b(this.options.item||this.theme.item).prop("tagName")).last()}while(e.hasClass("divider")||e.hasClass("dropdown-header")){e=e.prev()}e.addClass("active");var d=this.updater(e.data("value"));if(this.changeInputOnMove){this.$element.val(this.displayText(d)||d)}},listen:function(){this.$element.on("focus.bootstrap3Typeahead",b.proxy(this.focus,this)).on("blur.bootstrap3Typeahead",b.proxy(this.blur,this)).on("keypress.bootstrap3Typeahead",b.proxy(this.keypress,this)).on("propertychange.bootstrap3Typeahead input.bootstrap3Typeahead",b.proxy(this.input,this)).on("keyup.bootstrap3Typeahead",b.proxy(this.keyup,this));if(this.eventSupported("keydown")){this.$element.on("keydown.bootstrap3Typeahead",b.proxy(thi
[all...]
/template/mikio/assets/
H A Dmikio-typeahead.js199 var worker = jQuery.proxy(function () {
205 this.source(this.query, jQuery.proxy(this.process, this), jQuery.proxy(this.process, this));
207 this.source(this.query, jQuery.proxy(this.process, this));
428 .on('focus.bootstrap3Typeahead', jQuery.proxy(this.focus, this))
429 .on('blur.bootstrap3Typeahead', jQuery.proxy(this.blur, this))
430 .on('keypress.bootstrap3Typeahead', jQuery.proxy(this.keypress, this))
431 .on('propertychange.bootstrap3Typeahead input.bootstrap3Typeahead', jQuery.proxy(this.input, this))
432 .on('keyup.bootstrap3Typeahead', jQuery.proxy(this.keyup, this));
435 this.$element.on('keydown.bootstrap3Typeahead', jQuery.proxy(thi
[all...]
/template/templar/js/
H A Dbootstrap-typeahead.js90 …items = $.isFunction(this.source) ? this.source(this.query, $.proxy(this.process, this)) : this.so…
175 .on('focus', $.proxy(this.focus, this))
176 .on('blur', $.proxy(this.blur, this))
177 .on('keypress', $.proxy(this.keypress, this))
178 .on('keyup', $.proxy(this.keyup, this))
181 this.$element.on('keydown', $.proxy(this.keydown, this))
185 .on('click', $.proxy(this.click, this))
186 .on('mouseenter', 'li', $.proxy(this.mouseenter, this))
187 .on('mouseleave', 'li', $.proxy(this.mouseleave, this))
H A Dbootstrap-affix.js32 .on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
33 ….on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1…
H A Dbootstrap-carousel.js34 .on('mouseenter', $.proxy(this.pause, this))
35 .on('mouseleave', $.proxy(this.cycle, this))
45 && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
/template/parallax/lib/js/
H A Dtouch-punch.min.js1 …s;t.element.bind("touchstart",e.proxy(t,"_touchStart")).bind("touchmove",e.proxy(t,"_touchMove")).…
H A Dtouch-sensitive.js125 .bind('touchstart', $.proxy(self, '_touchStart'))
126 .bind('touchmove', $.proxy(self, '_touchMove'))
127 .bind('touchend', $.proxy(self, '_touchEnd'));
H A Dtouch-punch.js58 ….element.bind("touchstart", b.proxy(f, "_touchStart")).bind("touchmove", b.proxy(f, "_touchMove"))…
H A Dtouch-sensitive.min.js1 …s;t.element.bind("touchstart",e.proxy(t,"_touchStart")).bind("touchmove",e.proxy(t,"_touchMove")).…
H A Djquery.jcarousel.js301 n = t.proxy(function () {
409 this.onDestroy = t.proxy(function () {
410 this._destroy(), this.carousel().one("createend.jcarousel", t.proxy(this._create, this))
411 }, this), this.onReload = t.proxy(this._reload, this), this.onEvent = t.proxy(function (i) {
450 this.onDestroy = t.proxy(function () {
451 this._destroy(), this.carousel().one("createend.jcarousel", t.proxy(this._create, this))
452 … }, this), this.onReload = t.proxy(this._reload, this), this.onScroll = t.proxy(this._update, this)
475 e.on(a.options("event") + ".jcarouselpagination", t.proxy(function () {
519 this.onDestroy = t.proxy(function () {
520 this._destroy(), this.carousel().one("createend.jcarousel", t.proxy(this._create, this))
[all …]
H A Djquery.jcarousel.min.js1proxy(function(){this.animating=!1;var e=this.list().find("[data-jcarousel-clone]");e.size()>0&&(e…
/template/parallax/lib/bootstrap/js/
H A Dbootstrap.min.js112 …ause == "hover" && this.$element.on("mouseenter", b.proxy(this.pause, this)).on("mouseleave", b.pr…
507 …rop.click(this.options.backdrop == "static" ? c.proxy(this.$element[0].focus, this.$element[0]) : …
565 this.$element.on("click." + this.type, this.options.selector, c.proxy(this.toggle, this))
570 this.$element.on(h + "." + this.type, this.options.selector, c.proxy(this.enter, this));
571 this.$element.on(d + "." + this.type, this.options.selector, c.proxy(this.leave, this))
752 var h = c.proxy(this.process, this), d = c(g).is("body") ? c(window) : c(g), e;
977 …this.$element.on("blur", b.proxy(this.blur, this)).on("keypress", b.proxy(this.keypress, this)).on…
979 this.$element.on("keydown", b.proxy(this.keydown, this))
981 …this.$menu.on("click", b.proxy(this.click, this)).on("mouseenter", "li", b.proxy(this.mouseenter, …
1086 … = c(window).on("scroll.affix.data-api", c.proxy(this.checkPosition, this)).on("click.affix.data-a…
[all …]
H A Dbootstrap.js294 .on('mouseenter', $.proxy(this.pause, this))
295 .on('mouseleave', $.proxy(this.cycle, this))
920 $.proxy(this.$element[0].focus, this.$element[0])
921 : $.proxy(this.hide, this)
1369 var process = $.proxy(this.process, this)
1786 .on('blur', $.proxy(this.blur, this))
1787 .on('keypress', $.proxy(this.keypress, this))
1788 .on('keyup', $.proxy(this.keyup, this))
1795 .on('click', $.proxy(this.click, this))
1949 .on('click.affix.data-api', $.proxy(function () {
[all …]
/template/flat/assets/js/
H A Dflat.js192 setTimeout($.proxy(function () {
298 .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
299 .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
598 .one('bsTransitionEnd', $.proxy(complete, this))
636 .one('bsTransitionEnd', $.proxy(complete, this))
647 .each($.proxy(function (i, element) {
905 .load(this.options.remote, $.proxy(function () {
1012 .on('focusin.bs.modal', $.proxy(function (e) {
1062 .on('click.dismiss.bs.modal', $.proxy(function (e) {
1804 var process = $.proxy(this.process, this)
[all …]
H A Dflat.min.js1proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addCl…
2proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLo…
H A Dflat.min2.js1proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addCl…
2proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLo…
/template/flat/
H A Dflat.min.js1proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addCl…
2proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLo…
/template/klean/bootstrap/js/
H A Dbootstrap.min.js6proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addCl…
7proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLo…
H A Dbootstrap.js212 setTimeout($.proxy(function () {
328 .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
329 .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
630 .one('bsTransitionEnd', $.proxy(complete, this))
668 .one('bsTransitionEnd', $.proxy(complete, this))
679 .each($.proxy(function (i, element) {
946 .load(this.options.remote, $.proxy(function () {
1050 .one('bsTransitionEnd', $.proxy(this.hideModal, this))
1058 .on('focusin.bs.modal', $.proxy(function (e) {
1079 $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this))
[all …]
/template/kajukkk/bs/
H A Dbootstrap.min.js11proxy(function(){o[n](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,o.addCl…
12proxy(r,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[a](this.$element[0][l])}}}},o.prototype…
/template/launch/js/
H A Dbootstrap.min.js6proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addCl…
7proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLo…
/template/dokutwitterbootstrap/js/
H A Dbootstrap.min.js9proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:…
/template/dokubootstrapsimplified/js/
H A Dbootstrap.min.js9proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:…
/template/starterbootstrap/js/
H A Dbootstrap.js211 setTimeout($.proxy(function () {
318 .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
319 .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
621 .one('bsTransitionEnd', $.proxy(complete, this))
659 .one('bsTransitionEnd', $.proxy(complete, this))
670 .each($.proxy(function (i, element) {
930 .load(this.options.remote, $.proxy(function () {
1032 .on('focusin.bs.modal', $.proxy(function (e) {
1073 .on('click.dismiss.bs.modal', $.proxy(function (e) {
1801 var process = $.proxy(this.process, this)
[all …]
H A Dbootstrap.min.js6proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addCl…
8proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLo…

12