Revision 656c135b snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/foundation/foundation.tooltips.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/foundation/foundation.tooltips.js | ||
---|---|---|
12 | 12 |
selector : '.has-tip', |
13 | 13 |
additionalInheritableClasses : [], |
14 | 14 |
tooltipClass : '.tooltip', |
15 |
posBottom: 10, |
|
15 | 16 |
tipTemplate : function (selector, content) { |
16 | 17 |
return '<span data-selector="' + selector + '" class="' |
17 | 18 |
+ Foundation.libs.tooltips.settings.tooltipClass.substring(1) |
... | ... | |
111 | 112 |
|
112 | 113 |
reposition : function (target, tip, classes) { |
113 | 114 |
var width, nub, nubHeight, nubWidth, column, objPos; |
115 |
var self = this; |
|
114 | 116 |
|
115 | 117 |
tip.css('visibility', 'hidden').show(); |
116 | 118 |
|
... | ... | |
129 | 131 |
}).end(); |
130 | 132 |
}; |
131 | 133 |
|
132 |
objPos(tip, (target.offset().top + this.outerHeight(target) + 10), 'auto', 'auto', target.offset().left, width);
|
|
134 |
objPos(tip, (target.offset().top + this.outerHeight(target) + self.settings.posBottom), 'auto', 'auto', target.offset().left, width);
|
|
133 | 135 |
|
134 | 136 |
if ($(window).width() < 767) { |
135 |
objPos(tip, (target.offset().top + this.outerHeight(target) + 10), 'auto', 'auto', 12.5, $(this.scope).width());
|
|
137 |
objPos(tip, (target.offset().top + this.outerHeight(target) + self.settings.posBottom), 'auto', 'auto', 12.5, $(this.scope).width());
|
|
136 | 138 |
tip.addClass('tip-override'); |
137 | 139 |
objPos(nub, -nubHeight, 'auto', 'auto', target.offset().left); |
138 | 140 |
} else { |
139 |
objPos(tip, (target.offset().top + this.outerHeight(target) + 10), 'auto', 'auto', target.offset().left, width);
|
|
141 |
objPos(tip, (target.offset().top + this.outerHeight(target) + self.settings.posBottom), 'auto', 'auto', target.offset().left, width);
|
|
140 | 142 |
tip.removeClass('tip-override'); |
141 | 143 |
if (classes && classes.indexOf('tip-top') > -1) { |
142 | 144 |
objPos(tip, (target.offset().top - this.outerHeight(tip)), 'auto', 'auto', target.offset().left, width) |
Also available in: Unified diff