From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- resources/jquery.tipsy/jquery.tipsy.css | 17 ++++++++--------- resources/jquery.tipsy/jquery.tipsy.js | 17 ++++++++++++++--- 2 files changed, 22 insertions(+), 12 deletions(-) (limited to 'resources/jquery.tipsy') diff --git a/resources/jquery.tipsy/jquery.tipsy.css b/resources/jquery.tipsy/jquery.tipsy.css index 2e504c32..3680fbe2 100644 --- a/resources/jquery.tipsy/jquery.tipsy.css +++ b/resources/jquery.tipsy/jquery.tipsy.css @@ -11,7 +11,6 @@ border: solid 1px #a7d7f9; color: black; max-width: 15em; - text-align: left; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; @@ -30,36 +29,36 @@ width: 11px; height: 6px; } -.tipsy-n .tipsy-arrow { +/* @noflip */ .tipsy-n .tipsy-arrow { top: 0px; left: 50%; margin-left: -5px; } -.tipsy-nw .tipsy-arrow { +/* @noflip */ .tipsy-nw .tipsy-arrow { top: 1px; left: 10px; } -.tipsy-ne .tipsy-arrow { +/* @noflip */ .tipsy-ne .tipsy-arrow { top: 1px; right: 10px; } -.tipsy-s .tipsy-arrow { +/* @noflip */ .tipsy-s .tipsy-arrow { bottom: 0px; left: 50%; margin-left: -5px; background-position: bottom left; } -.tipsy-sw .tipsy-arrow { +/* @noflip */ .tipsy-sw .tipsy-arrow { bottom: 0px; left: 10px; background-position: bottom left; } -.tipsy-se .tipsy-arrow { +/* @noflip */ .tipsy-se .tipsy-arrow { bottom: 0px; right: 10px; background-position: bottom left; } -.tipsy-e .tipsy-arrow { +/* @noflip */ .tipsy-e .tipsy-arrow { top: 50%; margin-top: -5px; right: 1px; @@ -67,7 +66,7 @@ height: 11px; background-position: top right; } -.tipsy-w .tipsy-arrow { +/* @noflip */ .tipsy-w .tipsy-arrow { top: 50%; margin-top: -5px; left: 0px; diff --git a/resources/jquery.tipsy/jquery.tipsy.js b/resources/jquery.tipsy/jquery.tipsy.js index 7c808734..a9fcec8f 100644 --- a/resources/jquery.tipsy/jquery.tipsy.js +++ b/resources/jquery.tipsy/jquery.tipsy.js @@ -1,10 +1,17 @@ // tipsy, facebook style tooltips for jquery -// version 1.0.0a +// version 1.0.0a* // (c) 2008-2010 jason frame [jason@onehackoranother.com] -// releated under the MIT license +// released under the MIT license + +// * This installation of tipsy includes several local modifications to both Javascript and CSS. +// Please be careful when upgrading. (function($) { - + + function maybeCall(thing, ctx) { + return (typeof thing == 'function') ? (thing.call(ctx)) : thing; + }; + function fixTitle($ele) { if ($ele.attr('title') || typeof($ele.attr('original-title')) != 'string') { $ele.attr('original-title', $ele.attr('title') || '').removeAttr('title'); @@ -71,6 +78,9 @@ } $tip.css(tp).addClass('tipsy-' + gravity); + 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}, 100); @@ -174,6 +184,7 @@ }; $.fn.tipsy.defaults = { + className: null, delayIn: 0, delayOut: 0, fade: true, -- cgit v1.2.2