- Timestamp:
- May 25, 2011, 11:57:56 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/admin/themes/default/template/plugins_list.tpl
r10131 r11043 1 1 {footer_script} 2 2 var incompatible_msg = '{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'javascript'}'; 3 incompatible_msg += '\n'; 4 incompatible_msg += '{'Do you want to activate anyway?'|@translate|@escape:'javascript'}'; 3 var activate_msg = '\n{'Do you want to activate anyway?'|@translate|@escape:'javascript'}'; 5 4 6 5 {literal} … … 9 8 return confirm(incompatible_msg); 10 9 }); 11 jQuery('.warning').tipTip({ 12 'delay' : 0, 13 'fadeIn' : 200, 14 'fadeOut' : 200 10 jQuery.ajax({ 11 method: 'GET', 12 url: 'admin.php', 13 data: { page: 'plugins_list', incompatible_plugins: true }, 14 dataType: 'json', 15 success: function(data) { 16 for (i=0;i<data.length;i++) { 17 jQuery('#plugin_'+data[i]+' .pluginBoxNameCell') 18 .addClass('warning') 19 .attr('title', incompatible_msg) 20 .tipTip({'delay' : 0, 'fadeIn' : 200, 'fadeOut' : 200}); 21 jQuery('#plugin_'+data[i]+' .activate').attr('onClick', 'return confirm(incompatible_msg + activate_msg);'); 22 } 23 } 15 24 }); 16 25 }); … … 45 54 {foreach from=$plugins item=plugin name=plugins_loop} 46 55 {if $plugin.STATE == $plugin_state} 47 <div class="pluginBox" >56 <div class="pluginBox" id="plugin_{$plugin.ID}"> 48 57 <table> 49 58 <tr> 50 <td class="pluginBoxNameCell {if $plugin.INCOMPATIBLE} warning" title="{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'html'}{/if}">59 <td class="pluginBoxNameCell"> 51 60 {$plugin.NAME} 52 61 </td> … … 59 68 60 69 {elseif $plugin_state == 'inactive'} 61 <a href="{$plugin.U_ACTION}&action=activate" {if $plugin.INCOMPATIBLE}class="incompatible"{/if}>{'Activate'|@translate}</a>70 <a href="{$plugin.U_ACTION}&action=activate" class="activate">{'Activate'|@translate}</a> 62 71 | <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> 63 72
Note: See TracChangeset
for help on using the changeset viewer.