mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 00:23:40 +02:00
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:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user