Index: trunk/extensions/Wikidata/OmegaWiki/resources/omegawiki-ajax.js |
— | — | @@ -43,15 +43,6 @@ |
44 | 44 | $(this).next(".popupToggleable").toggle(100); |
45 | 45 | }); |
46 | 46 | |
47 | | - $(".mw-line-even").hover( |
48 | | - function (event) { |
49 | | - showTooltip( $(this), event ); |
50 | | - }, |
51 | | - function () { |
52 | | - hideTooltip( $(this) ); |
53 | | - } |
54 | | - ); |
55 | | - |
56 | 47 | $(window).resize(function() { |
57 | 48 | updateTabs(); |
58 | 49 | }); |
— | — | @@ -243,46 +234,7 @@ |
244 | 235 | |
245 | 236 | }); |
246 | 237 | |
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 ; |
252 | 238 | |
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 | | - } |
287 | 239 | //TODO: convert the functions below to jQuery... |
288 | 240 | |
289 | 241 | window.MD5 = function (string) { |