diff options
author | plegall <plg@piwigo.org> | 2014-05-26 09:57:07 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2014-05-26 09:57:07 +0000 |
commit | 2f62865ac11a98c6c817d7bf244815ef49b007ee (patch) | |
tree | 1875774ca8f847b7b3c5a5d772c369bb74385adb | |
parent | ad10a97f4ac3ffad5508b90da45b5c5a63db95ff (diff) |
bug fixed: on upload form, display existing albums
git-svn-id: http://piwigo.org/svn/trunk@28539 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/themes/default/template/photos_add_direct.tpl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/admin/themes/default/template/photos_add_direct.tpl b/admin/themes/default/template/photos_add_direct.tpl index 9dd64d01a..01637818b 100644 --- a/admin/themes/default/template/photos_add_direct.tpl +++ b/admin/themes/default/template/photos_add_direct.tpl @@ -37,6 +37,10 @@ jQuery('[data-selectize=categories]').selectize({ }); categoriesCache.get(function(categories) { + if (categories.length > 0) { + jQuery("#albumSelection").show(); + } + categories.sort(function(a, b) { return a.fullname.localeCompare(b.fullname); }); @@ -335,7 +339,7 @@ var sizeLimit = Math.round({$upload_max_filesize} / 1024); /* in KBytes */ <fieldset> <legend>{'Drop into album'|@translate}</legend> - <span id="albumSelection"{if count($category_options) == 0} style="display:none"{/if}> + <span id="albumSelection" style="display:none"> <select data-selectize="categories" data-value="{$selected_category|@json_encode|escape:html}" name="category" style="width:400px"></select> <br>{'... or '|@translate}</span> |