Add `fallback` to shim

Tipsy also supported the `fallback` element which will now not work anymore. To enhance compatibility we shall also implement it in the shim.

Fixes https://github.com/owncloud/core/issues/17870
This commit is contained in:
Lukas Reschke 2015-07-25 22:10:21 +02:00
parent 1e48eb8882
commit 56cff46dc3
1 changed files with 2 additions and 0 deletions

View File

@ -1888,6 +1888,8 @@ jQuery.fn.tipsy = function(argument) {
}
if(argument.title) {
options.title = argument.title;
} else if(argument.fallback) {
options.title = argument.fallback;
}
// destroy old tooltip in case the title has changed
jQuery.fn.tooltip.call(this, 'destroy');