From 650945c642d46ffe9ad44074479032b1700d3f45 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Thu, 19 Jul 2012 18:15:34 +0200 Subject: [PATCH] fix #835 Collecton selection bug in multiselect menu --- www/include/jslibs/jquery.multiselect.js | 150 +++++++++++------------ 1 file changed, 75 insertions(+), 75 deletions(-) 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('