לדלג לתוכן

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

מתוך צפונות ויקי
ניסיון לדמות התנהגות של addOnloadHook
כך?
שורה 2: שורה 2:
// written by [[user:Mikimik]]
// written by [[user:Mikimik]]
$(function() {setTimeout(function() {
$(function() {setTimeout(function() {
$('#p-cactions li a').wrap($('<span>'));  
$('#p-cactions li a').wrap('<span>');
$('div#p-views ul').append($('#p-cactions li'));  
$('#p-cactions li').insertAfter($('#ca-js-delete, #ca-js-block, #ca-watch, #ca-unwatch').eq(0));
$('#p-cactions').remove();
$('#p-cactions').remove();
}, 777);
}, 777);
});
});

גרסה מ־18:35, 5 ביוני 2012

// for vector skin: replace the links in the dropdown menu with regular tabs and hide the menu
// written by [[user:Mikimik]]
$(function() {setTimeout(function() {
	$('#p-cactions li a').wrap('<span>');
	$('#p-cactions li').insertAfter($('#ca-js-delete, #ca-js-block, #ca-watch, #ca-unwatch').eq(0));
	$('#p-cactions').remove();
}, 777);
});