Changeset 11184 for trunk/admin
- Timestamp:
- Jun 1, 2011, 11:59:48 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/plugins_installed.tpl
r11048 r11184 12 12 var queuedManager = jQuery.manageAjax.create('queued', { 13 13 queue: true, 14 maxRequests: 1, 15 complete: function() { location.reload(); } 14 maxRequests: 1 16 15 }); 16 var nb_plugins = jQuery('div.active').size(); 17 var done = 0; 17 18 18 19 jQuery(document).ready(function() { … … 32 33 data: { method: 'pwg.plugins.performAction', action: 'deactivate', plugin: id, pwg_token: pwg_token, format: 'json' }, 33 34 success: function(data) { 34 if (data['stat'] == 'ok') {35 jQuery("#"+id).removeClass('active').addClass('inactive');36 }35 if (data['stat'] == 'ok') jQuery("#"+id).removeClass('active').addClass('inactive'); 36 done++; 37 if (done == nb_plugins) location.reload(); 37 38 } 38 39 }); … … 107 108 {if $field_name != $plugin.STATE} 108 109 {if $field_name != 'null'} 109 {if $field_name == 'active'}<div class="deactivate_all"><a>{'Deactivate '|@translate} {'all'|@translate}</a></div>{/if}110 {if $field_name == 'active'}<div class="deactivate_all"><a>{'Deactivate all'|@translate}</a></div>{/if} 110 111 </fieldset> 111 112 {/if} … … 135 136 136 137 {if $plugin_display == 'complete'} 137 <div id="{$plugin.ID}" class="pluginBox ">138 <div id="{$plugin.ID}" class="pluginBox {$plugin.STATE}"> 138 139 <table> 139 140 <tr> … … 182 183 {/if} 183 184 184 <div id="{$plugin.ID}" class="pluginMiniBox ">185 <div id="{$plugin.ID}" class="pluginMiniBox {$plugin.STATE}"> 185 186 <div class="pluginMiniBoxNameCell"> 186 187 {$plugin.NAME}
Note: See TracChangeset
for help on using the changeset viewer.