מדיה ויקי:Gadget-CiteTooltip.js: הבדלים בין גרסאות בדף
(יותר עדיף) |
(←using [[mw:CodeEditor|CodeEditor]]: הערות עם שם.) |
||
שורה 1: | שורה 1: | ||
if (wgAction == 'view' | if (wgAction == 'view') | ||
mw.loader.using('jquery.tipsy', function() { | mw.loader.using('jquery.tipsy', function() { | ||
var createHint = function() {return $( | var createHint = function() { | ||
tipsyParams = {html: true, delayOut: 1500, delayIn: 300, fade: true, opacity: 1 | return $($.escapeRE(this.href.replace(/.*#/, '#'))).html(); | ||
$(function() {$('sup.reference').tipsy(tipsyParams);}); | }, | ||
tipsyParams = {html: true, delayOut: 1500, delayIn: 300, fade: true, opacity: 1, title: createHint}; | |||
$(function() {$('sup.reference a').tipsy(tipsyParams);}); | |||
}); | }); |
גרסה מ־03:07, 3 בפברואר 2012
if (wgAction == 'view')
mw.loader.using('jquery.tipsy', function() {
var createHint = function() {
return $($.escapeRE(this.href.replace(/.*#/, '#'))).html();
},
tipsyParams = {html: true, delayOut: 1500, delayIn: 300, fade: true, opacity: 1, title: createHint};
$(function() {$('sup.reference a').tipsy(tipsyParams);});
});