From e1b5e45c12a25ac8ed674acf200f11c8a5003d9d Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 9 Feb 2012 10:16:56 +0000 Subject: feature 2309 added: ability to "move photos" into an album from the Batch Manager, ie "dissociate from all albums" + "associate" in a single action. git-svn-id: http://piwigo.org/svn/trunk@13064 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../themes/default/template/batch_manager_global.tpl | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (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 856633421..76a99de5b 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -194,6 +194,13 @@ $(document).ready(function() { $("[id^=action_]").hide(); $("#action_"+$(this).attr("value")).show(); + /* make sure the #albumSelect is on the right select box so that the */ + /* "add new album" popup fills the right select box */ + if ("associate" == $(this).attr("value") || "move" == $(this).attr("value")) { + jQuery("#albumSelect").removeAttr("id"); + jQuery("#action_"+$(this).attr("value")+" select").attr("id", "albumSelect"); + } + if ($(this).val() != -1) { $("#applyActionBlock").show(); } @@ -612,6 +619,7 @@ jQuery(window).load(function() { {/if} + {if !empty($dissociate_options)} {/if} @@ -645,12 +653,21 @@ jQuery(window).load(function() {
- {html_options options=$associate_options }
{'... or '|@translate}{'create a new album'|@translate}
+ +
+ +
{'... or '|@translate}{'create a new album'|@translate} +
+ +