「MediaWiki:Common.js」の版間の差分

ナビゲーションに移動 検索に移動
(標準名前空間以外でもプレビューへ誘導するように変更)
36行目: 36行目:
         var $button = $table.find('tr:first > td:first > .collapseButton');
         var $button = $table.find('tr:first > td:first > .collapseButton');
         $table.$toggle = $button.append('[<a href="#"></a>]').children();
         $table.$toggle = $button.append('[<a href="#"></a>]').children();
 
        /*
         if (/^cookie-(.+)$/.test(collapse)) {
         if (/^cookie-(.+)$/.test(collapse)) {
             var key = 'collapse-' + RegExp.$1;
             var key = 'collapse-' + RegExp.$1;
44行目: 44行目:
             $table.$toggle.on('click', $.proxy(toggleCollapsible, $table, null));
             $table.$toggle.on('click', $.proxy(toggleCollapsible, $table, null));
         }
         }
        */
        $table.$toggle.on('click', $.proxy(toggleCollapsible, $table, null));


         if (collapse == 'collapsed' || (collapse == 'autocollapse' &&
         if (collapse == 'collapsed' || (collapse == 'autocollapse' &&

案内メニュー