מדיה ויקי:Gadget-moveVectorMenuToTabs.js: הבדלים בין גרסאות בדף
מראה
מתקן את התיקון הקודם |
מ 9 גרסאות של הדף wikipedia:he:מדיה_ויקי:Gadget-moveVectorMenuToTabs.js יובאו |
||
| (6 גרסאות ביניים של משתמש אחר אחד אינן מוצגות) | |||
| שורה 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() { | ||
{ | 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 ); | |||
}); | |||
גרסה אחרונה מ־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 );
});