Index: trunk/phase3/resources/mediawiki.special/mediawiki.special.recentchanges.js |
— | — | @@ -25,11 +25,11 @@ |
26 | 26 | }, |
27 | 27 | |
28 | 28 | init: function() { |
29 | | - // Populate & bind |
30 | | - $select = $( '#namespace' ).change( rc.updateCheckboxes ); |
| 29 | + // Populate |
| 30 | + $select = $( '#namespace' ); |
31 | 31 | |
32 | | - // Trigger once set the initial statuses of the checkboxes. |
33 | | - $select.change(); |
| 32 | + // Bind to change event, and trigger once to set the initial state of the checkboxes. |
| 33 | + $select.change( rc.updateCheckboxes ).change(); |
34 | 34 | } |
35 | 35 | }; |
36 | 36 | |