לדלג לתוכן

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

מתוך צפונות ויקי
אין תקציר עריכה
אין תקציר עריכה
שורה 1: שורה 1:
if (typeof window.orientation !== 'undefined' || window.rollbackConfirm) {
$(function() {
mw.loader
function convert() {
.using(['jquery.confirmable'], function() {
mw.loader
$('.mw-rollback-link > a')
.using(['jquery.confirmable'], function() {
.confirmable();
$('.mw-rollback-link > a')
});
.confirmable();
}
});
}
if (typeof window.orientation !== 'undefined' || window.rollbackConfirm) {
convert();
mw.hook('wikipage.content').add(convert);
}
});

גרסה מ־22:49, 10 ביוני 2018

$(function() {
	function convert() {
		mw.loader
			.using(['jquery.confirmable'], function() {
				$('.mw-rollback-link > a')
					.confirmable();
			});
	}
	
	if (typeof window.orientation !== 'undefined' || window.rollbackConfirm) {
		convert();
		mw.hook('wikipage.content').add(convert);
	}
});