From 6def72bd67de89484fa9574a89b5e7ff0ca635a3 Mon Sep 17 00:00:00 2001 From: Brian Reavis Date: Mon, 5 Aug 2013 19:45:43 -0700 Subject: [PATCH] Released 0.6.12. --- bower.json | 2 +- selectize.css | 2 +- selectize.jquery.json | 2 +- selectize.js | 4 ++-- selectize.min.js | 22 +++++++++++----------- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bower.json b/bower.json index fd3c0c9a6..b1413daea 100644 --- a/bower.json +++ b/bower.json @@ -2,7 +2,7 @@ "name": "selectize", "keywords": ["select", "ui", "form", "input", "control", "autocomplete", "tagging", "tag"], "description": "Selectize is a jQuery-based custom ').appendTo(d).attr("tabindex",e);g=f(b.dropdownParent||c);g=f("
").addClass(b.dropdownClass).hide().appendTo(g);h=f("
").addClass(b.dropdownContentClass).appendTo(g);c.css({width:a.$input[0].style.width,display:a.$input.css("display")});a.plugins.length&& c.addClass("plugin-"+a.plugins.join(" plugin-"));q=a.settings.mode;c.toggleClass("single","single"===q);c.toggleClass("multi","multi"===q);(null===b.maxItems||1c&&(e=d,d=c,c=e);for(;d<=c;d++)e=this.$control[0].childNodes[d],-1===this.$activeItems.indexOf(e)&&(f(e).addClass("active"),this.$activeItems.push(e));b.preventDefault()}else"mousedown"===c&&this.isCtrlDown||"keydown"===c&&this.isShiftDown?a.hasClass("active")?(c=this.$activeItems.indexOf(a[0]),this.$activeItems.splice(c,1),a.removeClass("active")):this.$activeItems.push(a.addClass("active")[0]):(f(this.$activeItems).removeClass("active"), this.$activeItems=[a.addClass("active")[0]]);this.isFocused=!!this.$activeItems.length||this.isInputFocused}else f(this.$activeItems).removeClass("active"),this.$activeItems=[],this.isFocused=this.isInputFocused},setActiveOption:function(a,b,c){var d,e,g;this.$activeOption&&this.$activeOption.removeClass("active");this.$activeOption=null;a=f(a);a.length&&(this.$activeOption=a.addClass("active"),b||!t(b))&&(a=this.$dropdown_content.height(),d=this.$activeOption.outerHeight(!0),b=this.$dropdown_content.scrollTop()|| 0,e=this.$activeOption.offset().top-this.$dropdown_content.offset().top+b,g=e-a+d,e+d>a-b?this.$dropdown_content.stop().animate({scrollTop:g},c?this.settings.scrollDuration:0):e