מדיה ויקי:Gadget-CiteTooltip.js: הבדלים בין גרסאות בדף

מתוך צפונות ויקי
(גאדג'ט חדש?)
 
(קרוב לקצה)
שורה 2: שורה 2:
mw.loader.using('jquery.tipsy', function() {
mw.loader.using('jquery.tipsy', function() {
var createHint = function() {return $('#' + this.id.replace('ref', 'note')).html();},
var createHint = function() {return $('#' + this.id.replace('ref', 'note')).html();},
tipsyParams = {html: true, delayOut: 1500, delayIn: 300, fade: true, opacity: 1, title: createHint};
tipsyParams = {html: true, delayOut: 1500, delayIn: 300, fade: true, opacity: 1, gravity: $.fn.tipsy.autoWE, title: createHint};
$(function() {$('sup.reference').tipsy(tipsyParams);});
$(function() {$('sup.reference').tipsy(tipsyParams);});
});
});

גרסה מ־18:32, 2 בפברואר 2012

if (wgAction == 'view' && wgNamespaceNumber== 0)
mw.loader.using('jquery.tipsy', function() {
	var createHint = function() {return $('#' + this.id.replace('ref', 'note')).html();},
		tipsyParams = {html: true, delayOut: 1500, delayIn: 300, fade: true, opacity: 1, gravity: $.fn.tipsy.autoWE, title: createHint};
	$(function() {$('sup.reference').tipsy(tipsyParams);});
});