From 2f62865ac11a98c6c817d7bf244815ef49b007ee Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 26 May 2014 09:57:07 +0000 Subject: bug fixed: on upload form, display existing albums git-svn-id: http://piwigo.org/svn/trunk@28539 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/photos_add_direct.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'admin/themes/default/template') 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 */
{'Drop into album'|@translate} -