לדלג לתוכן

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

מתוך צפונות ויקי
טאבים?
ניסיון לדמות התנהגות של addOnloadHook
שורה 1: שורה 1:
// for vector skin: replace the links in the dropdown menu with regular tabs and hide the menu
// for vector skin: replace the links in the dropdown menu with regular tabs and hide the menu
// written by [[user:Mikimik]]
// written by [[user:Mikimik]]
$(function() {
$(function() {setTimeout(function() {
$('#p-cactions li a').wrap($('<span>'));  
$('#p-cactions li a').wrap($('<span>'));  
$('div#p-views ul').append($('#p-cactions li'));  
$('div#p-views ul').append($('#p-cactions li'));  
$('#p-cactions').remove();
$('#p-cactions').remove();
}, 777);
});
});

גרסה מ־15:27, 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>')); 
	$('div#p-views ul').append($('#p-cactions li')); 
	$('#p-cactions').remove();
}, 777);
});