bug fixed: on upload form, display existing albums

git-svn-id: http://piwigo.org/svn/trunk@28539 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2014-05-26 09:57:07 +00:00
parent ad10a97f4a
commit 2f62865ac1

View File

@@ -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>