From 4c1066c8f6dd05ca589ae89d48c54c95fdf7a2f7 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 2 Jun 2014 21:56:54 +0000 Subject: redefine selectize templates without escaping + translate "Add" git-svn-id: http://piwigo.org/svn/trunk@28613 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/batch_manager_global.tpl | 4 +++- admin/themes/default/template/batch_manager_unit.tpl | 4 +++- admin/themes/default/template/picture_modify.tpl | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index 971fb90fb..1d1a40943 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -74,7 +74,9 @@ jQuery(document).ready(function() {ldelim} rootUrl: '{$ROOT_URL}' }); - tagsCache.selectize(jQuery('[data-selectize=tags]')); + tagsCache.selectize(jQuery('[data-selectize=tags]'), { lang: { + 'Add': '{'Create'|translate}' + }}); {* *} var categoriesCache = new CategoriesCache({ diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index 376879b49..edea405d3 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -16,7 +16,9 @@ var tagsCache = new TagsCache({ rootUrl: '{$ROOT_URL}' }); -tagsCache.selectize(jQuery('[data-selectize=tags]')); +tagsCache.selectize(jQuery('[data-selectize=tags]'), { lang: { + 'Add': '{'Create'|translate}' +}}); {* *} jQuery(function(){ {* *} diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index 21033be92..45aeb7fd0 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -25,7 +25,9 @@ var tagsCache = new TagsCache({ rootUrl: '{$ROOT_URL}' }); -tagsCache.selectize(jQuery('[data-selectize=tags]')); +tagsCache.selectize(jQuery('[data-selectize=tags]'), { lang: { + 'Add': '{'Create'|translate}' +}}); {* *} jQuery(function(){ {* *} -- cgit v1.2.3