Ignore:
Timestamp:
Oct 9, 2012, 6:58:57 AM (12 years ago)
Author:
rvelices
Message:

batch manager - remove unused code, less sql queries and avoid 4 calls to same display_select function

File:
1 edited

Legend:

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

    r18484 r18573  
    1616    var inputs = [];
    1717    var count=0;
    18     var This=$(this);
    1918    this.find('input[type=checkbox]').each(function() {
    2019      var pos=count;
     
    523522        {'Album'|@translate}
    524523        <select style="width:400px" name="filter_category" size="1">
    525           {html_options options=$filter_category_options selected=$filter_category_options_selected}
     524          {html_options options=$category_full_name_options selected=$filter_category_selected}
    526525        </select>
    527526        <label><input type="checkbox" name="filter_category_recursive" {if isset($filter.category_recursive)}checked="checked"{/if}> {'include child albums'|@translate}</label>
     
    676675      <option value="-1">{'Choose an action'|@translate}</option>
    677676      <option disabled="disabled">------------------</option>
    678   {if isset($show_delete_form) }
    679677      <option value="delete">{'Delete selected photos'|@translate}</option>
    680   {/if}
    681678      <option value="associate">{'Associate to album'|@translate}</option>
    682679      <option value="move">{'Move to album'|@translate}</option>
     
    715712    <div id="action_associate" class="bulkAction">
    716713          <select style="width:400px" name="associate" size="1">
    717             {html_options options=$associate_options }
     714            {html_options options=$category_full_name_options}
    718715         </select>
    719716<br>{'... or '|@translate} <a href="#" class="addAlbumOpen" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a>
     
    723720    <div id="action_move" class="bulkAction">
    724721          <select style="width:400px" name="move" size="1">
    725             {html_options options=$move_options }
     722            {html_options options=$category_full_name_options}
    726723         </select>
    727724<br>{'... or '|@translate} <a href="#" class="addAlbumOpen" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a>
Note: See TracChangeset for help on using the changeset viewer.