You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My triggers have title attributes and I am using a single { tip: '#tooltip'} div.
Since tipClass has been introduced, nevertheless a new div.tooltip is created for every trigger.
When I switch the if clause priority and set the corresponding title myself, the single div#tooltip is being used again and no div.tooltip nodes are being created anymore, as it was before 1.2.0.
Patch:
--- src/tooltip/tooltip.js 2010-09-04 18:51:56.000000000 +0200
+++ build/1.2.4/tooltip/tooltip.js 2010-09-07 12:35:23.000000000 +0200
@@ -173,15 +172,15 @@
if (tipAttr) {
tip = $(tipAttr);
+ // single tip element for all
+ } else if (conf.tip) {
+ tip = $(conf.tip).eq(0);
+
// autogenerated tooltip
} else if (title) {
tip = $(conf.layout).addClass(conf.tipClass).appendTo(document.body)
.hide().append(title);
- // single tip element for all
- } else if (conf.tip) {
- tip = $(conf.tip).eq(0);
-
// manual tooltip
} else {
tip = trigger.next();
@@ -199,6 +198,9 @@
// get position
var pos = getPosition(trigger, tip, conf);
+ // restore title for single tooltip element
+ if (conf.tip)
+ tip.html(trigger.data("title"));
// onBeforeShow
e = e || $.Event();
The text was updated successfully, but these errors were encountered:
My triggers have title attributes and I am using a single { tip: '#tooltip'} div.
Since tipClass has been introduced, nevertheless a new div.tooltip is created for every trigger.
When I switch the if clause priority and set the corresponding title myself, the single div#tooltip is being used again and no div.tooltip nodes are being created anymore, as it was before 1.2.0.
Patch:
The text was updated successfully, but these errors were encountered: