From 92224bcbf49d58829988eb0485afc17695f6de0c Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 9 Oct 2015 19:13:30 +0200 Subject: fix #357 make orphans photos more obvious ... and easy to delete them all in one click. The orpans, if any, is shown as an entry in the "Photos" menu (link on Batch Manager). In the Batch Manager, new action "delete_orphans" next to prefilter. --- admin/themes/default/template/batch_manager_global.tpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'admin/themes/default/template/batch_manager_global.tpl') diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index 46262c0ff..c3be514b4 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -268,6 +268,7 @@ $(document).ready(function() { jQuery("select[name=filter_prefilter]").change(function() { jQuery("#empty_caddie").toggle(jQuery(this).val() == "caddie"); jQuery("#duplicates_options").toggle(jQuery(this).val() == "duplicates"); + jQuery("#delete_orphans").toggle(jQuery(this).val() == "no_album"); }); }); @@ -329,10 +330,15 @@ var sliders = { {'Predefined filter'|@translate} {'Empty caddie'|translate} + {'Delete %d orphan photos'|translate:$NB_ORPHANS} {'based on'|translate} -- cgit v1.2.3