Changeset 11184


Ignore:
Timestamp:
06/01/11 11:59:48 (8 years ago)
Author:
mistic100
Message:

plugin manager: "Deactivate all" button now works

Location:
trunk
Files:
3 edited

Legend:

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

    r11048 r11184  
    1212var queuedManager = jQuery.manageAjax.create('queued', {  
    1313  queue: true,   
    14   maxRequests: 1, 
    15   complete: function() { location.reload(); } 
     14  maxRequests: 1 
    1615}); 
     16var nb_plugins = jQuery('div.active').size(); 
     17var done = 0; 
    1718 
    1819jQuery(document).ready(function() { 
     
    3233      data: { method: 'pwg.plugins.performAction', action: 'deactivate', plugin: id, pwg_token: pwg_token, format: 'json' }, 
    3334      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(); 
    3738      } 
    3839    }); 
     
    107108{if $field_name != $plugin.STATE} 
    108109  {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} 
    110111  </fieldset> 
    111112  {/if} 
     
    135136    
    136137  {if $plugin_display == 'complete'} 
    137     <div id="{$plugin.ID}" class="pluginBox"> 
     138    <div id="{$plugin.ID}" class="pluginBox {$plugin.STATE}"> 
    138139      <table> 
    139140        <tr> 
     
    182183    {/if} 
    183184           
    184     <div id="{$plugin.ID}" class="pluginMiniBox"> 
     185    <div id="{$plugin.ID}" class="pluginMiniBox {$plugin.STATE}"> 
    185186      <div class="pluginMiniBoxNameCell"> 
    186187        {$plugin.NAME} 
  • trunk/language/en_UK/admin.lang.php

    r11008 r11184  
    208208$lang['Day'] = "Day"; 
    209209$lang['Deactivate'] = "Deactivate"; 
     210$lang['Deactivate all'] = "Deactivate all"; 
    210211$lang['Default display'] = "Default display"; 
    211212$lang['Default user cannot be deleted'] = "Default user cannot be deleted"; 
  • trunk/language/fr_FR/admin.lang.php

    r11008 r11184  
    7171$lang['Database'] = "Base de données"; 
    7272$lang['Deactivate'] = "Désactiver"; 
     73$lang['Deactivate all'] = "Désactiver tout"; 
    7374$lang['Delete Representant'] = "Supprimer le représentant"; 
    7475$lang['Delete selected tags'] = "Supprimer les tags sélectionnés"; 
Note: See TracChangeset for help on using the changeset viewer.