r115791 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r115790‎ | r115791 | r115792 >
Date:13:15, 19 December 2012
Author:kipcool
Status:new
Tags:
Comment:
removed some experimental functions that should not have been committed...
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/resources/omegawiki-ajax.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/resources/omegawiki-ajax.js
@@ -43,15 +43,6 @@
4444 $(this).next(".popupToggleable").toggle(100);
4545 });
4646
47 - $(".mw-line-even").hover(
48 - function (event) {
49 - showTooltip( $(this), event );
50 - },
51 - function () {
52 - hideTooltip( $(this) );
53 - }
54 - );
55 -
5647 $(window).resize(function() {
5748 updateTabs();
5849 });
@@ -243,46 +234,7 @@
244235
245236 });
246237
247 - function showTooltip(elem, event) {
248 -// elem.hide();
249 - // position where it will be displayeds
250 - var posX = event.pageX ;
251 - var posY = elem.offset().top - 40 ;
252238
253 - // check it the element already has a tooltip (hidden)
254 - if ( elem.children(".tooltip").length ) {
255 - //yes : reposition and show it
256 - elem.children(".tooltip")
257 - .css ("left", posX)
258 - .show();
259 -
260 - } else {
261 - // else create it
262 - var tipdiv = jQuery(document.createElement('span')) ;
263 - var tipmessage = "toto";
264 -
265 - tipdiv.addClass("tooltip")
266 - .css ("position", "fixed")
267 - .css ("left", posX)
268 - .css ("top", posY)
269 - .html( tipmessage )
270 - .appendTo(elem)
271 - .show();
272 -
273 - var triangle = jQuery(document.createElement('span')) ;
274 - // position absolute = given relative to its parent
275 - triangle.addClass("triangle-down")
276 - .css ("position", "absolute")
277 - // 5 is half of the triangle size
278 - .css ("left", tipdiv.width() / 2 - 5 )
279 - .css ("top", tipdiv.outerHeight() )
280 - .appendTo(tipdiv);
281 - } // else
282 - }
283 -
284 - function hideTooltip(elem) {
285 - elem.children(".tooltip").hide();
286 - }
287239 //TODO: convert the functions below to jQuery...
288240
289241 window.MD5 = function (string) {