From acc123cb5a45ddbd22642bc4050110ffdc6accea Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sun, 29 Jan 2017 03:01:52 +0000 Subject: [PATCH] Update jQuery SelectBoxes 2.2.4 to 2.2.6 --- CHANGES.md | 1 + gui/slick/js/lib/jquery.selectboxes.min.js | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 437c44c7..515022c4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -33,6 +33,7 @@ * Update jquery.cookiejar 1.0.1 to 1.0.2 * Update jQuery JSON 2.2 (c908771) to 2.6 (2339804) * Update jquery.form plugin 3.35.0 to 3.51.0 (6bf24a5) +* Update jQuery SelectBoxes 2.2.4 to 2.2.6 * Update jquery-tokeninput 1.60 to 1.62 (9c36e19) * Update jQuery UI Touch Punch 0.2.2 to 0.2.3 * Update qTip 2.2.1 to 2.2.2 diff --git a/gui/slick/js/lib/jquery.selectboxes.min.js b/gui/slick/js/lib/jquery.selectboxes.min.js index 2ea85acc..bdece82e 100644 --- a/gui/slick/js/lib/jquery.selectboxes.min.js +++ b/gui/slick/js/lib/jquery.selectboxes.min.js @@ -1,14 +1,20 @@ /* * - * Copyright (c) 2006-2008 Sam Collett (http://www.texotela.co.uk) + * Copyright (c) 2006-2010 Sam Collett (http://www.texotela.co.uk) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * - * Version 2.2.4 - * Demo: http://www.texotela.co.uk/code/jquery/select/ - * - * $LastChangedDate: 2008-06-17 17:27:25 +0100 (Tue, 17 Jun 2008) $ - * $Rev: 5727 $ + * Version 2.2.6 * */ -;(function(h){h.fn.addOption=function(){var j=function(a,f,c,g){var d=document.createElement("option");d.value=f,d.text=c;var b=a.options;var e=b.length;if(!a.cache){a.cache={};for(var i=0;i=2){if(typeof(k[1])=="boolean")l=k[1];else if(typeof(k[2])=="boolean")l=k[2];if(!m){o=k[0];p=k[1]}}this.each(function(){if(this.nodeName.toLowerCase()!="select")return;if(m){for(var a in n){j(this,a,n[a],l)}}else{j(this,o,p,l)}});return this};h.fn.ajaxAddOption=function(c,g,d,b,e){if(typeof(c)!="string")return this;if(typeof(g)!="object")g={};if(typeof(d)!="boolean")d=true;this.each(function(){var f=this;h.getJSON(c,g,function(a){h(f).addOption(a,d);if(typeof b=="function"){if(typeof e=="object"){b.apply(f,e)}else{b.call(f)}}})});return this};h.fn.removeOption=function(){var d=arguments;if(d.length==0)return this;var b=typeof(d[0]);var e,i;if(b=="string"||b=="object"||b=="function"){e=d[0];if(e.constructor==Array){var j=e.length;for(var k=0;k=0;g--){if(e.constructor==RegExp){if(f[g].value.match(e)){a=true}}else if(f[g].value==e){a=true}if(a&&d[1]===true)a=f[g].selected;if(a){f[g]=null}a=false}}else{if(d[1]===true){a=f[i].selected}else{a=true}if(a){this.remove(i)}}});return this};h.fn.sortOptions=function(e){var i=h(this).selectedValues();var j=typeof(e)=="undefined"?true:!!e;this.each(function(){if(this.nodeName.toLowerCase()!="select")return;var c=this.options;var g=c.length;var d=[];for(var b=0;bo2t?-1:1}});for(var b=0;bo2t?-1:1});for(h=0;h