diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-12-11 22:00:17 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-12-11 22:00:17 +0100 |
commit | 7f1bb5fd780f88e3765046af6777e5420d14829d (patch) | |
tree | 6e12d080bc82dababf11017bb46faae565013127 /core/js/jquery-tipsy.js | |
parent | 98dc0882cbba43e892d2a5a7bf015d0218e026cb (diff) | |
parent | a0548a416a56f6e0fd3269279777d57156c47d15 (diff) | |
download | nextcloud-server-7f1bb5fd780f88e3765046af6777e5420d14829d.tar.gz nextcloud-server-7f1bb5fd780f88e3765046af6777e5420d14829d.zip |
Merge branch 'master' into database
Diffstat (limited to 'core/js/jquery-tipsy.js')
-rw-r--r-- | core/js/jquery-tipsy.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/js/jquery-tipsy.js b/core/js/jquery-tipsy.js index 9567ed3bacc..ef4bbfd87a1 100644 --- a/core/js/jquery-tipsy.js +++ b/core/js/jquery-tipsy.js @@ -31,6 +31,10 @@ height: this.$element[0].offsetHeight }); + if (this.options.className) { + $tip.addClass(maybeCall(this.options.className, this.$element[0])); + } + var actualWidth = $tip[0].offsetWidth, actualHeight = $tip[0].offsetHeight, gravity = maybeCall(this.options.gravity, this.$element[0]); @@ -61,9 +65,6 @@ $tip.css(tp).addClass('tipsy-' + gravity); $tip.find('.tipsy-arrow')[0].className = 'tipsy-arrow tipsy-arrow-' + gravity.charAt(0); - if (this.options.className) { - $tip.addClass(maybeCall(this.options.className, this.$element[0])); - } if (this.options.fade) { $tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity}); |