From 82b52dd0c0b33c67ac10d44d4f1411da2838ba29 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Tue, 27 May 2014 21:47:57 +0000 Subject: feature 3077 : factorize code for cache/selectize git-svn-id: http://piwigo.org/svn/trunk@28550 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../themes/default/template/batch_manager_unit.tpl | 38 +++------------------- 1 file changed, 4 insertions(+), 34 deletions(-) (limited to 'admin/themes/default/template/batch_manager_unit.tpl') diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index 6d5a90ddd..27f8cd721 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -10,43 +10,13 @@ {footer_script} (function(){ {* *} -var tagsCache = new LocalStorageCache({ - key: 'tagsAdminList', +var tagsCache = new TagsCache({ serverKey: '{$CACHE_KEYS.tags}', serverId: '{$CACHE_KEYS._hash}', - - loader: function(callback) { - jQuery.getJSON('{$ROOT_URL}ws.php?format=json&method=pwg.tags.getAdminList', function(data) { - var tags = data.result.tags; - - for (var i=0, l=tags.length; i *} jQuery(function(){ {* *} @@ -128,7 +98,7 @@ $(".elementEdit img") {'Tags'|@translate} + name="tags-{$element.id}[]" multiple style="width:500px;" data-selectize-create> -- cgit v1.2.3