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

מתוך צפונות ויקי
(יותר עדיף)
שורה 1: שורה 1:
if (wgAction == 'view' && wgNamespaceNumber== 0)
if (wgAction == 'view')
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() {
tipsyParams = {html: true, delayOut: 1500, delayIn: 300, fade: true, opacity: 1, gravity: 'n', title: createHint};
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);});
});