fixed issue 478, thank you Matthew Norris, sorry this took so long

This commit is contained in:
mdipierro
2012-08-08 14:15:32 -05:00
parent 4911f3f2f1
commit 7f97301e06
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-08-08 13:59:52) dev
Version 2.00.0 (2012-08-08 14:15:29) dev
+2 -5
View File
@@ -45,11 +45,8 @@ if(jQuery) (function($){
html += '<div class="multiSelectOptions" style="position: absolute; z-index: 99999; display: none;">';
if( o.selectAll ) html += '<label class="selectAll"><input type="checkbox" class="selectAll" />' + o.selectAllText + '</label>';
$(select).find('OPTION').each( function() {
if( $(this).val() != '' ) {
html += '<label><input type="checkbox" name="' + $(select).attr('name') + '" value="' + $(this).val() + '"';
if( $(this).attr('selected') ) html += ' checked="checked"';
html += ' />' + $(this).html() + '</label>';
}
if( $(this).val() != '' )
html += '<label for="'+$(select).attr('name')+'">'+$(this).html() + '</label><input type="checkbox" name="' + $(select).attr('name') + '" value="' + $(this).val() + '"'+($(this).attr('selected')?' checked="checked"':'')+' />';
});
html += '</div>';
$(select).after(html);