aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2011-04-14 23:17:49 +0000
committermistic100 <mistic@piwigo.org>2011-04-14 23:17:49 +0000
commitfda50a256ba37648c661922735226d319dcc1750 (patch)
tree7ce79186b36de926f9617a8a1bf41f18dd1b00f2 /admin/themes
parent8027f4fe0c9894cef757598ebf4bd06edbc7a285 (diff)
plugin manager : description tooltip on the title, tooltip for restoration link
git-svn-id: http://piwigo.org/svn/trunk@10378 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes')
-rw-r--r--admin/themes/default/template/plugins_list.tpl19
-rw-r--r--admin/themes/default/theme.css2
2 files changed, 10 insertions, 11 deletions
diff --git a/admin/themes/default/template/plugins_list.tpl b/admin/themes/default/template/plugins_list.tpl
index 39b1725bd..ccf6f02f7 100644
--- a/admin/themes/default/template/plugins_list.tpl
+++ b/admin/themes/default/template/plugins_list.tpl
@@ -60,17 +60,19 @@ jQuery(document).ready(function() {
'fadeIn' : 200,
'fadeOut' : 200,
'maxWidth':'250px'
- }).click(function(){
- return false;
+ });
+ jQuery('.plugin-restore').tipTip({
+ 'delay' : 0,
+ 'fadeIn' : 200,
+ 'fadeOut' : 200
});
jQuery('.pluginMiniBoxDesc').tipTip({
'delay' : 0,
'fadeIn' : 200,
'fadeOut' : 200,
'maxWidth':'300px', /* not effective, TipTip bug */
+ 'defaultPosition':'left',
'keepAlive':true
- }).click(function(){
- return false;
});
});
{/literal}
@@ -149,7 +151,7 @@ jQuery(document).ready(function() {
<td>
{if $plugin.STATE == 'active'}
<a href="{$plugin.U_ACTION}&amp;action=deactivate">{'Deactivate'|@translate}</a>
- | <a href="{$plugin.U_ACTION}&amp;action=restore" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Restore'|@translate}</a>
+ | <a href="{$plugin.U_ACTION}&amp;action=restore" class="plugin-restore" title="{'Restore default configuration. You will lost your plugin settings!'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Restore'|@translate}</a>
{elseif $plugin.STATE == 'inactive'}
<a href="{$plugin.U_ACTION}&amp;action=activate" {if $plugin.INCOMPATIBLE}class="incompatible"{/if}>{'Activate'|@translate}</a>
@@ -186,15 +188,14 @@ jQuery(document).ready(function() {
<div id="{$plugin.ID}" class="pluginMiniBox {$plugin.STATE}{if $plugin.INCOMPATIBLE} incompatible{/if}">
<div class="pluginMiniBoxNameCell">
- {if $plugin.INCOMPATIBLE}<a class="warning" title="{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'html'}"></a>{/if}
- {$plugin.NAME}
- <a class="pluginMiniBoxDesc" title="{if !empty($author)}{'By %s'|@translate|@sprintf:$author} | {/if}{'Version'|@translate} {$version}<br/>{$plugin.DESC|@escape:'html'}"></a>
+ {if $plugin.INCOMPATIBLE}<span class="warning" title="{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'html'}"></span>{/if}
+ <span class="pluginMiniBoxDesc" title="{if !empty($author)}{'By %s'|@translate|@sprintf:$author} | {/if}{'Version'|@translate} {$version}<br/>{$plugin.DESC|@escape:'html'}">{$plugin.NAME}</span>
</div>
<div class="pluginActions">
<div>
{if $plugin.STATE == 'active'}
<a href="{$plugin.U_ACTION}&amp;action=deactivate">{'Deactivate'|@translate}</a>
- | <a href="{$plugin.U_ACTION}&amp;action=restore" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Restore'|@translate}</a>
+ | <a href="{$plugin.U_ACTION}&amp;action=restore" class="plugin-restore" title="{'Restore default configuration. You will lost all your settings !'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Restore'|@translate}</a>
{elseif $plugin.STATE == 'inactive'}
<a href="{$plugin.U_ACTION}&amp;action=activate" {if $plugin.INCOMPATIBLE}class="incompatible"{/if}>{'Activate'|@translate}</a>
diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css
index fc093c009..49b0870d3 100644
--- a/admin/themes/default/theme.css
+++ b/admin/themes/default/theme.css
@@ -945,8 +945,6 @@ h2:lang(en) { text-transform:capitalize; }
.pluginMiniBox.inactive, .pluginMiniBox.uninstalled {opacity:0.65;filter:alpha(opacity=65);}
.pluginsByState .pluginMiniBox.inactive, .pluginsByState .pluginMiniBox.uninstalled {opacity:0.8;filter:alpha(opacity=80);}
-.pluginMiniBoxDesc{float:right;margin:0 4px 0 -20px;}
-.pluginMiniBoxDesc:after{content:url(icon/help-min.png);}
.warning:before {content:url(icon/warning.png);vertical-align:top;}
fieldset.pluginsByName{border:none;}