summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorlou <louiscuny@gmail.com>2012-11-29 16:36:18 +0100
committerlou <louiscuny@gmail.com>2012-11-29 16:36:18 +0100
commit42215840f22c8687ad2466a19fac9f3140658706 (patch)
tree341e289bccbdd4c134835572c06b0bd180c2fae9 /js
parent9a6741712fb818fdd6ffa0154dd270f471555a4f (diff)
downloadmulti-select-42215840f22c8687ad2466a19fac9f3140658706.zip
multi-select-42215840f22c8687ad2466a19fac9f3140658706.tar.gz
multi-select-42215840f22c8687ad2466a19fac9f3140658706.tar.bz2
add span to optgroup label and change div by span for selectable/selection elements
Diffstat (limited to 'js')
-rw-r--r--js/jquery.multi-select.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js
index 057b0b3..aaef6e2 100644
--- a/js/jquery.multi-select.js
+++ b/js/jquery.multi-select.js
@@ -53,13 +53,13 @@
selectableUl.append(
'<li class="ms-optgroup-container" id="'+optgroupId+'-selectable">\
<ul class="ms-optgroup">\
- <li class="ms-optgroup-label">'+optgroupLabel+'</li>\
+ <li class="ms-optgroup-label"><span>'+optgroupLabel+'</span></li>\
</ul>\
</li>');
selectionUl.append(
'<li class="ms-optgroup-container" id="'+optgroupId+'-selection">\
<ul class="ms-optgroup">\
- <li class="ms-optgroup-label">'+optgroupLabel+'</li>\
+ <li class="ms-optgroup-label"><span>'+optgroupLabel+'</span></li>\
</ul>\
</li>');
optgroupCpt++;
@@ -73,7 +73,7 @@
attributes += name+'="'+attr.value+'" ';
}
- var selectableLi = $('<li '+attributes+'><div>'+$(this).text()+'</div></li>'),
+ var selectableLi = $('<li '+attributes+'><span>'+$(this).text()+'</span></li>'),
selectedLi = selectableLi.clone();
selectableLi.addClass('ms-elem-selectable');