diff options
author | plegall <plg@piwigo.org> | 2016-05-03 15:16:34 +0200 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2016-05-03 15:16:34 +0200 |
commit | 105ccb8d0f251a19a8ef87f2729dc597c9a61d1c (patch) | |
tree | 9db7d001037b329142e80971297a66f4de9303e6 /admin/themes | |
parent | 3f96dc19f0a243e9599a41c6f763cab8be4d88e8 (diff) | |
parent | c5af8c4922f8cd7d833da7900592ffaae3b8e0da (diff) |
Merge branch '2.8'
Diffstat (limited to '')
-rw-r--r-- | admin/themes/default/template/batch_manager_global.tpl | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index c3be514b4..d8b183717 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -134,7 +134,13 @@ $(document).ready(function() { $("select[name=selectAction]").change(function () { $("[id^=action_]").hide(); - $("#action_"+$(this).prop("value")).show(); + + var action = $(this).prop("value"); + if (action == 'move') { + action = 'associate'; + } + + $("#action_"+action).show(); if ($(this).val() != -1) { $("#applyActionBlock").show(); @@ -590,21 +596,13 @@ UL.thumbnails SPAN.wrap2 {ldelim} <p><label><input type="checkbox" name="confirm_deletion" value="1"> {'Are you sure?'|@translate}</label></p> </div> - <!-- associate --> + <!-- associate -->{* also used for "move" action *} <div id="action_associate" class="bulkAction"> <select data-selectize="categories" data-default="first" name="associate" style="width:600px"></select> <br>{'... or '|@translate} <a href="#" data-add-album="associate" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a> </div> - <!-- move --> - <div id="action_move" class="bulkAction"> - <select data-selectize="categories" data-default="first" name="move" style="width:600px"></select> - <br>{'... or '|@translate} - <a href="#" data-add-album="move" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a> - </div> - - <!-- dissociate --> <div id="action_dissociate" class="bulkAction"> <select data-selectize="categories" placeholder="{'Type in a search term'|translate}" |