Index: trunk/phase3/includes/Xml.php |
— | — | @@ -132,8 +132,6 @@ |
133 | 133 | } |
134 | 134 | |
135 | 135 | if( !is_null( $all ) ) |
136 | | - # Please make sure the 'namespacesall' is the first or you will break |
137 | | - # such an assumption (ex js: mw.special.recentchanges.updateCheckboxes) |
138 | 136 | $namespaces = array( $all => wfMsg( 'namespacesall' ) ) + $namespaces; |
139 | 137 | foreach( $namespaces as $index => $name ) { |
140 | 138 | if( $index < NS_MAIN ) { |
Index: trunk/phase3/resources/mediawiki.special/mediawiki.special.recentchanges.js |
— | — | @@ -15,8 +15,8 @@ |
16 | 16 | * special 'all' namespace is selected/unselected respectively. |
17 | 17 | */ |
18 | 18 | updateCheckboxes: function() { |
19 | | - // The 'all' namespace is the FIRST in the list. |
20 | | - var isAllNS = $select.find( 'option' ).first().is( ':selected' ); |
| 19 | + // The option element for the 'all' namespace has an empty value |
| 20 | + var isAllNS = ('' === $select.find('option:selected').val() ); |
21 | 21 | |
22 | 22 | // Iterates over checkboxes and propagate the selected option |
23 | 23 | $.each( checkboxes, function( i, id ) { |