r77629 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77628‎ | r77629 | r77630 >
Date:01:10, 3 December 2010
Author:tparscal
Status:ok
Tags:
Comment:
Using 100ms fade by deafult
Modified paths:
  • /trunk/phase3/resources/jquery.tipsy/jquery.tipsy.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/jquery.tipsy/jquery.tipsy.js
@@ -65,7 +65,7 @@
6666 $tip.css(tp).addClass('tipsy-' + gravity);
6767
6868 if (this.options.fade) {
69 - $tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity});
 69+ $tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity}, 100);
7070 } else {
7171 $tip.css({visibility: 'visible', opacity: this.options.opacity});
7272 }
@@ -74,7 +74,7 @@
7575
7676 hide: function() {
7777 if (this.options.fade) {
78 - this.tip().stop().fadeOut(function() { $(this).remove(); });
 78+ this.tip().stop().fadeOut(100, function() { $(this).remove(); });
7979 } else {
8080 this.tip().remove();
8181 }
@@ -168,7 +168,7 @@
169169 $.fn.tipsy.defaults = {
170170 delayIn: 0,
171171 delayOut: 0,
172 - fade: false,
 172+ fade: true,
173173 fallback: '',
174174 gravity: 'n',
175175 html: false,

Status & tagging log