Index: branches/RL2/extensions/Gadgets/SpecialGadgetManager.php |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | |
22 | 22 | $this->setHeaders(); |
23 | 23 | $out->setPagetitle( wfMsg( 'gadgetmanager-title' ) ); |
24 | | - $out->addModules( 'ext.gadgets.gadgetmanager' ); |
| 24 | + $out->addModuleStyles( 'ext.gadgets.gadgetmanager.prejs' ); |
25 | 25 | |
26 | 26 | // Determine view |
27 | 27 | if ( is_string( $par ) && $par !== '' ) { |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | foreach ( $gadgetsByCategory as $category => $gadgets ) { |
71 | 71 | // Avoid broken or empty headings. Fallback to a special message |
72 | 72 | // for uncategorized gadgets (e.g. gadgets with category '' ). |
73 | | - if ( $category != '' ) { |
| 73 | + if ( $category !== '' ) { |
74 | 74 | $categoryMsg = wfMessage( "gadgetcategory-$category" ); |
75 | 75 | } else { |
76 | 76 | $categoryMsg = wfMessage( 'gadgetmanager-uncategorized' ); |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | ); |
84 | 84 | |
85 | 85 | // Start per-category gadgets table |
86 | | - $html .= '<table class="mw-gadgetmanager-gadgets TablePager"><tr>'; |
| 86 | + $html .= '<table class="mw-gadgetmanager-gadgets mw-datatable"><tr>'; |
87 | 87 | $html .= |
88 | 88 | '<th>' . wfMessage( 'gadgetmanager-tablehead-title' )->escaped() |
89 | 89 | . '</th><th>' . wfMessage( 'gadgetmanager-tablehead-default' )->escaped() |
Index: branches/RL2/extensions/Gadgets/Gadgets.php |
— | — | @@ -141,8 +141,9 @@ |
142 | 142 | 'remoteExtPath' => 'Gadgets/modules' |
143 | 143 | ); |
144 | 144 | $wgResourceModules += array( |
145 | | - 'ext.gadgets.gadgetmanager' => $gadResourceTemplate + array( |
146 | | - 'styles' => 'ext.gadgets.gadgetmanager.css', |
| 145 | + // Also loaded in if javascript disabled |
| 146 | + 'ext.gadgets.gadgetmanager.prejs' => $gadResourceTemplate + array( |
| 147 | + 'styles' => 'ext.gadgets.gadgetmanager.prejs.css', |
147 | 148 | 'position' => 'top', |
148 | | - ) |
| 149 | + ), |
149 | 150 | ); |
Index: branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.css |
— | — | @@ -1,10 +0,0 @@ |
2 | | -.mw-gadgetmanager-gadgets { |
3 | | - width: 100%; |
4 | | -} |
5 | | - |
6 | | -.mw-gadgetmanager-gadgets-default, |
7 | | -.mw-gadgetmanager-gadgets-hidden, |
8 | | -.mw-gadgetmanager-gadgets-shared { |
9 | | - width: 4em; |
10 | | - text-align: center; |
11 | | -} |
Index: branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.prejs.css |
— | — | @@ -0,0 +1,10 @@ |
| 2 | +.mw-gadgetmanager-gadgets { |
| 3 | + width: 100%; |
| 4 | +} |
| 5 | + |
| 6 | +.mw-gadgetmanager-gadgets-default, |
| 7 | +.mw-gadgetmanager-gadgets-hidden, |
| 8 | +.mw-gadgetmanager-gadgets-shared { |
| 9 | + width: 4em; |
| 10 | + text-align: center; |
| 11 | +} |
Property changes on: branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.prejs.css |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 12 | + native |