diff options
author | plegall <plg@piwigo.org> | 2014-07-25 13:28:16 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2014-07-25 13:28:16 +0000 |
commit | cacdce647409ce7559dd63e94830648786126859 (patch) | |
tree | 09a048f642e555dca290a1e69905f80064d825d6 /admin/themes | |
parent | b97fcf2a2203a28ccba854215bf58d2129bd4c5b (diff) |
feature 2904: add a link "empty caddie" in the Batch Manager.
git-svn-id: http://piwigo.org/svn/trunk@29076 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes')
-rw-r--r-- | admin/themes/default/template/batch_manager_global.tpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index 7d693edc6..94adb98be 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -352,6 +352,10 @@ $(document).ready(function() { .slider("values", 0, getSliderKeyFromValue(min, dimension_values[type]) ) .slider("values", 1, getSliderKeyFromValue(max, dimension_values[type]) ); }); + + jQuery("select[name=filter_prefilter]").change(function() { + jQuery("#empty_caddie").toggle(jQuery(this).val() == "caddie"); + }); }); {/footer_script} @@ -376,6 +380,7 @@ $(document).ready(function() { <option value="{$prefilter.ID}" {if isset($filter.prefilter) && $filter.prefilter eq $prefilter.ID}selected="selected"{/if}>{$prefilter.NAME}</option> {/foreach} </select> + <a id="empty_caddie" href="admin.php?page=batch_manager&action=empty_caddie" style="{if !isset($filter.prefilter) or $filter.prefilter ne 'caddie'}display:none{/if}">{'Empty caddie'|translate}</a> </li> <li id="filter_category" {if !isset($filter.category)}style="display:none"{/if}> |