Changeset 29760 for trunk/admin/themes
- Timestamp:
- Sep 23, 2014, 11:28:26 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/batch_manager_global.tpl
r29619 r29760 44 44 rootUrl: '{$ROOT_URL}' 45 45 }); 46 47 var associated_categories = {$associated_categories|@json_encode}; 46 48 47 49 categoriesCache.selectize(jQuery('[data-selectize=categories]'), { … … 49 51 if (this.name == 'dissociate') { 50 52 var filtered = jQuery.grep(categories, function(cat) { 51 return ! cat.dir;53 return !!associated_categories[cat.id]; 52 54 }); 53 55 54 56 if (filtered.length > 0) { 55 jQuery('.albumDissociate').show();56 57 options.default = filtered[0].id; 57 58 } … … 553 554 <option value="associate">{'Associate to album'|@translate}</option> 554 555 <option value="move">{'Move to album'|@translate}</option> 555 <option value="dissociate" class="albumDissociate" style="display:none">{'Dissociate from album'|@translate}</option> 556 {if !empty($associated_categories)} 557 <option value="dissociate">{'Dissociate from album'|@translate}</option> 558 {/if} 556 559 <option value="add_tags">{'Add tags'|@translate}</option> 557 560 {if !empty($associated_tags)} … … 598 601 599 602 <!-- dissociate --> 600 <div id="action_dissociate" class="bulkAction albumDissociate" style="display:none">603 <div id="action_dissociate" class="bulkAction"> 601 604 <select data-selectize="categories" placeholder="{'Type in a search term'|translate}" 602 605 name="dissociate" style="width:600px"></select>
Note: See TracChangeset
for help on using the changeset viewer.