http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89805
Revision: 89805
Author: foxtrott
Date: 2011-06-09 21:59:09 +0000 (Thu, 09 Jun 2011)
Log Message:
-----------
some cleanup
Modified Paths:
--------------
trunk/extensions/Lingo/libs/Lingo.js
Modified: trunk/extensions/Lingo/libs/Lingo.js
===================================================================
--- trunk/extensions/Lingo/libs/Lingo.js 2011-06-09 21:50:45 UTC (rev
89804)
+++ trunk/extensions/Lingo/libs/Lingo.js 2011-06-09 21:59:09 UTC (rev
89805)
@@ -1,10 +1,6 @@
jQuery(function ($){
- var tooltips = $(".tooltip");
- // var tooltip_wrapper = tooltip.find(".tooltip_tipwrapper");
- // var tooltip_tip = tooltip_wrapper.find(".tooltip_tip");
-
- tooltips
+ $(".tooltip")
.mouseenter(function(){
var tip = $(this);
@@ -19,7 +15,6 @@
wrapper
.css({
- // 'visibility': 'hidden',
'visibility': 'visible',
'display': 'block',
'width': '10000000px'
@@ -47,12 +42,7 @@
tipdef.width( maxAvailableWidth );
- // tipdef.css({
- // 'position': 'fixed',
- // 'top': '0px',
- // 'left': '0px'
- // });
- // if constrained to the window width, i.e.
+ // height if constrained to the window width, i.e.
// the minimum width necessary if the full window width were
available
var heightAtMaxWidth = tipdef.height();
@@ -85,14 +75,14 @@
// if it is too large anyway, just set max available
width and be
// done with it
- wrapper.css({
- 'width': maxAvailableWidth + 'px',
- 'padding-left': '10px',
- 'left': '0px',
- 'top': '0px',
- 'padding-bottom': '0px',
- 'padding-top' : (tip.outerHeight() + 5
) +'px'
- });
+ wrapper.css({
+ 'width': maxAvailableWidth + 'px',
+ 'padding-left': '10px',
+ 'left': '0px',
+ 'top': '0px',
+ 'padding-bottom': '0px',
+ 'padding-top' : (tip.outerHeight() + 5 ) +'px'
+ });
} else {
@@ -143,7 +133,7 @@
if ( placeAbove ) {
wrapper.css({
'top': ( - tipdef.outerHeight() - 5) +
'px',
- 'padding-bottom': '10px',
+ 'padding-bottom': (tip.outerHeight() +
5 ) +'px',
'padding-top' : '0px'
});
@@ -166,7 +156,6 @@
wrapper
.css({
- // 'width': '100%',
'height': 'auto',
'visibility': 'visible',
'display': 'none'
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs