Show
Ignore:
Timestamp:
02/09/12 11:16:56 (16 months ago)
Author:
plg
Message:

feature 2309 added: ability to "move photos" into an album from the Batch
Manager, ie "dissociate from all albums" + "associate" in a single action.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r13063 r13064  
    195195    $("#action_"+$(this).attr("value")).show(); 
    196196 
     197    /* make sure the #albumSelect is on the right select box so that the */ 
     198    /* "add new album" popup fills the right select box                  */ 
     199    if ("associate" == $(this).attr("value") || "move" == $(this).attr("value")) { 
     200      jQuery("#albumSelect").removeAttr("id"); 
     201      jQuery("#action_"+$(this).attr("value")+" select").attr("id", "albumSelect"); 
     202    } 
     203 
    197204    if ($(this).val() != -1) { 
    198205      $("#applyActionBlock").show(); 
     
    613620  {/if} 
    614621      <option value="associate">{'Associate to album'|@translate}</option> 
     622      <option value="move">{'Move to album'|@translate}</option> 
    615623  {if !empty($dissociate_options)} 
    616624      <option value="dissociate">{'Dissociate from album'|@translate}</option> 
     
    646654    <!-- associate --> 
    647655    <div id="action_associate" class="bulkAction"> 
    648           <select id="albumSelect" style="width:400px" name="associate" size="1"> 
     656          <select style="width:400px" name="associate" size="1"> 
    649657            {html_options options=$associate_options } 
    650658         </select> 
    651659<br>{'... or '|@translate}</span><a href="#" class="addAlbumOpen" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a> 
    652660    </div> 
     661 
     662    <!-- move --> 
     663    <div id="action_move" class="bulkAction"> 
     664          <select style="width:400px" name="move" size="1"> 
     665            {html_options options=$move_options } 
     666         </select> 
     667<br>{'... or '|@translate}</span><a href="#" class="addAlbumOpen" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a> 
     668    </div> 
     669 
    653670 
    654671    <!-- dissociate -->