diff --git a/www/include/jslibs/jquery.multiselect.js b/www/include/jslibs/jquery.multiselect.js
index b8876ed033..443bb60196 100644
--- a/www/include/jslibs/jquery.multiselect.js
+++ b/www/include/jslibs/jquery.multiselect.js
@@ -10,7 +10,7 @@
* http://www.gnu.org/licenses/gpl.html
*/
(function($){
-
+
$.fn.multiSelect = function(opts){
opts = $.extend({}, $.fn.multiSelect.defaults, opts);
@@ -18,22 +18,22 @@
return new MultiSelect(this, opts);
});
};
-
+
// counter to dynamically generate label/option IDs if they don't exist
var multiselectID = 0;
-
+
var MultiSelect = function(select,o){
- var $select = $original = $(select),
- $options, $header, $labels,
- html = [],
- optgroups = [],
- isDisabled = $select.is(':disabled'),
+ var $select = $original = $(select),
+ $options, $header, $labels,
+ html = [],
+ optgroups = [],
+ isDisabled = $select.is(':disabled'),
id = select.id || 'ui-multiselect-'+multiselectID++; // unique ID for the label & option tags
-
+
html.push('');
html.push('');
html.push('
');
-
+
if(o.showHeader){
html.push('
');
html.push('
');
@@ -43,44 +43,44 @@
html.push('
');
html.push('
');
}
-
+
// build options
html.push('
');
-
- /*
+
+ /*
If this select is disabled, remove the actual disabled attribute and let themeroller's .ui-state-disabled class handle it.
This is a workaround for jQuery bug #6211 where options in webkit inherit the select's disabled property. This
- won't achieve the same level of 'disabled' behavior (the checkboxes will still be present in form submission),
- but it at least gives you a way to emulate the UI.
+ won't achieve the same level of 'disabled' behavior (the checkboxes will still be present in form submission),
+ but it at least gives you a way to emulate the UI.
*/
if(isDisabled){
$select.removeAttr("disabled");
}
-
+
$select.find('option').each(function(i){
- var $this = $(this),
- title = $this.html(),
- value = this.value,
- inputID = this.id || "ui-multiselect-"+id+"-option-"+i,
- $parent = $this.parent(),
- hasOptGroup = $parent.is('optgroup'),
- isDisabled = $this.is(':disabled'),
+ var $this = $(this),
+ title = $this.html(),
+ value = this.value,
+ inputID = this.id || "ui-multiselect-"+id+"-option-"+i,
+ $parent = $this.parent(),
+ hasOptGroup = $parent.is('optgroup'),
+ isDisabled = $this.is(':disabled'),
labelClasses = ['ui-corner-all'];
-
+
if(hasOptGroup){
var label = $parent.attr('label');
-
+
if($.inArray(label,optgroups) === -1){
html.push('