aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-05-24 16:24:52 +0000
committermistic100 <mistic@piwigo.org>2014-05-24 16:24:52 +0000
commitad10a97f4ac3ffad5508b90da45b5c5a63db95ff (patch)
tree5d31569cbd3784fee3ed7662dd838d281d3910cc /admin/include
parentfea2a4efd1ad085def7cf84cc444325d0815b62e (diff)
feature 3077 : use selectize on batch_manager_global, cat_modify and photos_add_direct
+ rewrite "add album" popup (more flexible and working with selectize) git-svn-id: http://piwigo.org/svn/trunk@28533 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/photos_add_direct_prepare.inc.php20
1 files changed, 5 insertions, 15 deletions
diff --git a/admin/include/photos_add_direct_prepare.inc.php b/admin/include/photos_add_direct_prepare.inc.php
index 117abb802..44b63082d 100644
--- a/admin/include/photos_add_direct_prepare.inc.php
+++ b/admin/include/photos_add_direct_prepare.inc.php
@@ -217,16 +217,7 @@ SELECT category_id
}
// existing album
-$query = '
-SELECT id,name,uppercats,global_rank
- FROM '.CATEGORIES_TABLE.'
-;';
-
-display_select_cat_wrapper(
- $query,
- $selected_category,
- 'category_options'
- );
+$template->assign('selected_category', $selected_category);
// image level options
@@ -256,11 +247,10 @@ if (!function_exists('gd_info'))
$setup_errors[] = l10n('GD library is missing');
}
-$template->assign(
- array(
- 'setup_errors'=> $setup_errors,
- )
- );
+$template->assign(array(
+ 'setup_errors'=> $setup_errors,
+ 'CACHE_KEYS' => get_admin_client_cache_keys(array('categories')),
+ ));
// Warnings
if (isset($_GET['hide_warnings']))