Permalink
Browse files

Activate dynamic tooltips to reposition it, so that they are always v…

…isible
  • Loading branch information...
1 parent a9ac531 commit 73d548f7494d4c03848a41c1b4aee4c58761e19b @elioschmutz elioschmutz committed Feb 10, 2014
View
@@ -4,7 +4,8 @@ Changelog
1.1.3 (unreleased)
------------------
-- Nothing changed yet.
+- Activate dynamic tooltips to reposition it, so that they are always visible
+ [elio.schmutz]
1.1.2 (2013-10-21)
@@ -32,7 +32,7 @@ function ShowTooltip(item){
}
}, customconfig);
if (!$this.data('tooltip')){
- $this.tooltip(settings);
+ $this.tooltip(settings).dynamic({right: {offset: [0, $this.width()]}});
$this.trigger('mouseover')
}
// Manually remove title attribute (live event allways readds the title attr)
@@ -52,4 +52,4 @@ $(function(){
});
});
</tal:def>
-<div tal:replace="structure python: '//]]>'" />
+<div tal:replace="structure python: '//]]>'" />
@@ -8,6 +8,7 @@
<i18n:registerTranslations directory="locales" />
<include package=".browser" />
+ <include package=".upgrades" />
<genericsetup:registerProfile
name="default"
@@ -3,4 +3,5 @@
<javascript cacheable="False" compression="safe" cookable="False" expression=""
enabled="True" id="@@dynamic_tooltips.js" inline="True"
/>
+ <javascript enabled="True" id="++resource++plone.app.jquerytools.plugins.js" />
</object>
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<metadata>
- <version>1.0</version>
+ <version>1131</version>
</metadata>
No changes.
@@ -0,0 +1,18 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
+ xmlns:upgrade-step="http://namespaces.zope.org/ftw.upgrade"
+ i18n_domain="ftw.tooltip">
+
+ <include package="ftw.upgrade" file="meta.zcml" />
+
+ <!-- 1 -> 1131-->
+ <upgrade-step:importProfile
+ title="Activate dynamic tooltips"
+ profile="ftw.tooltip:default"
+ source="1.0"
+ destination="1131"
+ directory="profiles/1131"
+ />
+
+</configure>
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<object name="portal_javascripts" meta_type="JavaScripts Registry">
+ <javascript enabled="True" id="++resource++plone.app.jquerytools.plugins.js" />
+</object>
View
@@ -47,6 +47,7 @@
install_requires=[
'setuptools',
+ 'ftw.upgrade',
# Zope
'Zope2',

0 comments on commit 73d548f

Please sign in to comment.