לדלג לתוכן

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

מתוך צפונות ויקי
כך?
מ 9 גרסאות של הדף wikipedia:he:מדיה_ויקי:Gadget-moveVectorMenuToTabs.js יובאו
 
(2 גרסאות ביניים של משתמש אחר אחד אינן מוצגות)
שורה 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() {setTimeout(function() {
$(function() {
$('#p-cactions li a').wrap('<span>');
function doit() {
$('#p-cactions li').insertAfter($('#ca-js-delete, #ca-js-block, #ca-watch, #ca-unwatch').eq(0));
$( '#p-cactions li a' ).wrap( '<span>' );
$('#p-cactions').remove();
$( '#p-cactions li' ).insertAfter( $( '#ca-js-delete, #ca-js-block, #ca-watch, #ca-unwatch' ).eq( 0 ) );
}, 777);
$('#p-cactions').toggle( false );
}
doit();
$( document ).on( 'new-portlet-link', doit );
});
});

גרסה אחרונה מ־12:35, 5 בדצמבר 2022

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