From c17ed8b55fc7886a5cbe4797694b310ed3dc4816 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sat, 30 Jul 2011 04:49:02 +0000 Subject: feature 2387: addd a filter by tag in the batch manager git-svn-id: http://piwigo.org/svn/trunk@11853 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../default/template/batch_manager_global.tpl | 27 +++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'admin/themes/default') diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index f1e722e35..70ebc137f 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -11,8 +11,9 @@ {footer_script require='jquery.tokeninput'} jQuery(document).ready(function() {ldelim} + var tag_src = [{foreach from=$tags item=tag name=tags}{ldelim}name:"{$tag.name|@escape:'javascript'}",id:"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}]; jQuery("#tags").tokenInput( - [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name|@escape:'javascript'}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], + tag_src, {ldelim} hintText: '{'Type in a search term'|@translate}', noResultsText: '{'No results'|@translate}', @@ -23,6 +24,19 @@ jQuery(document).ready(function() {ldelim} allowCreation: true } ); + + jQuery("#tagsFilter").tokenInput( + tag_src, + {ldelim} + hintText: '{'Type in a search term'|@translate}', + noResultsText: '{'No results'|@translate}', + searchingText: '{'Searching...'|@translate}', + animateDropdown: false, + preventDuplicates: true, + allowCreation: false + } + ); + }); {/footer_script} @@ -466,6 +480,16 @@ jQuery(window).load(function() { +
  • + [x] + + {'Tags'|@translate} + +
  • [x] @@ -482,6 +506,7 @@ jQuery(window).load(function() { + -- cgit v1.2.3