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(''); html.push('
'); } - + // build options html.push('