bug fixed: adapt the maxOptions to each listbox to display all items

git-svn-id: http://piwigo.org/svn/trunk@29614 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2014-09-18 09:54:04 +00:00
parent 392c1e9c37
commit d16180d731
+6 -3
View File
@@ -8,9 +8,12 @@
{footer_script}
jQuery(document).ready(function() {
jQuery("#authors, #tags, #categories").selectize({
plugins: ['remove_button']
});
jQuery("#authors, #tags, #categories").each(function() {
jQuery(this).selectize({
plugins: ['remove_button'],
maxOptions:jQuery(this).find("option").length
});
})
});
{/footer_script}