summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2015-07-08 10:53:17 +0200
committerHendrik Leppelsack <hendrik@leppelsack.de>2015-07-08 10:53:17 +0200
commit6f547a99601bf01295d94ca77f876ada280f5bf2 (patch)
treeee414bc42d8a9f118b360cc960df82d3b73c8576 /core/js/js.js
parent00b97dfbb1cca3568e4068c5a14e0728640f195f (diff)
downloadnextcloud-server-6f547a99601bf01295d94ca77f876ada280f5bf2.tar.gz
nextcloud-server-6f547a99601bf01295d94ca77f876ada280f5bf2.zip
fix tipsy not updating on reinitialization
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 50081209979..60fcec2350b 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1757,7 +1757,6 @@ jQuery.fn.tipsy = function(argument) {
trigger: 'hover',
html: false
};
- // tooltip direction
if(argument.gravity) {
switch(argument.gravity) {
case 'n':
@@ -1793,7 +1792,11 @@ jQuery.fn.tipsy = function(argument) {
if(argument.title) {
options.title = argument.title;
}
+ // destroy old tooltip in case the title has changed
+ jQuery.fn.tooltip.call(this, 'destroy');
jQuery.fn.tooltip.call(this, options);
+ } else {
+ this.tooltip(argument);
+ jQuery.fn.tooltip.call(this, argument);
}
- jQuery.fn.tooltip.call(this, argument);
}