מדיה ויקי:Gadget-toggleRCOptions.js: הבדלים בין גרסאות בדף
קפיצה לניווט
קפיצה לחיפוש
חלוקת קונטרסים (שיחה | תרומות) מ (גרסה אחת יובאה: ייבוא גאדג'טים מחב"דפדיה. קרדיט לויקיפדיה על מה שהועתק מהם לחב"דפדיה) |
אין תקציר עריכה |
||
| שורה 1: | שורה 1: | ||
var $match = $('.rcoptions, #mw-watchlist-form, #Recentchangestext'); | |||
// | // Important: many pages do not load this module by default so make sure it's loaded. | ||
if ($match.length) { | |||
mw.loader.using('jquery.makeCollapsible').then( function () { | |||
// Hides the RC options by default (incl. toggle button) | |||
$match.makeCollapsible({collapsed:true}); | |||
} ); | |||
} | } | ||
גרסה אחרונה מ־10:43, 1 ביולי 2026
var $match = $('.rcoptions, #mw-watchlist-form, #Recentchangestext');
// Important: many pages do not load this module by default so make sure it's loaded.
if ($match.length) {
mw.loader.using('jquery.makeCollapsible').then( function () {
// Hides the RC options by default (incl. toggle button)
$match.makeCollapsible({collapsed:true});
} );
}