fix tipsy not updating on reinitialization
This commit is contained in:
parent
00b97dfbb1
commit
6f547a9960
|
@ -1757,7 +1757,6 @@ jQuery.fn.tipsy = function(argument) {
|
||||||
trigger: 'hover',
|
trigger: 'hover',
|
||||||
html: false
|
html: false
|
||||||
};
|
};
|
||||||
// tooltip direction
|
|
||||||
if(argument.gravity) {
|
if(argument.gravity) {
|
||||||
switch(argument.gravity) {
|
switch(argument.gravity) {
|
||||||
case 'n':
|
case 'n':
|
||||||
|
@ -1793,7 +1792,11 @@ jQuery.fn.tipsy = function(argument) {
|
||||||
if(argument.title) {
|
if(argument.title) {
|
||||||
options.title = 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);
|
jQuery.fn.tooltip.call(this, options);
|
||||||
|
} else {
|
||||||
|
this.tooltip(argument);
|
||||||
|
jQuery.fn.tooltip.call(this, argument);
|
||||||
}
|
}
|
||||||
jQuery.fn.tooltip.call(this, argument);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue