From: Krinkle Date: Tue, 28 Jun 2011 18:17:49 +0000 (+0000) Subject: per r90984 CR, cleaner this way X-Git-Tag: 1.31.0-rc.0~29218 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=bfad162105651434253385d82ba806633573954e;p=lhc%2Fweb%2Fwiklou.git per r90984 CR, cleaner this way --- diff --git a/resources/mediawiki.special/mediawiki.special.recentchanges.js b/resources/mediawiki.special/mediawiki.special.recentchanges.js index 4854ff4abf..7b117595da 100644 --- a/resources/mediawiki.special/mediawiki.special.recentchanges.js +++ b/resources/mediawiki.special/mediawiki.special.recentchanges.js @@ -25,11 +25,11 @@ }, init: function() { - // Populate & bind - $select = $( '#namespace' ).change( rc.updateCheckboxes ); + // Populate + $select = $( '#namespace' ); - // Trigger once set the initial statuses of the checkboxes. - $select.change(); + // Bind to change event, and trigger once to set the initial state of the checkboxes. + $select.change( rc.updateCheckboxes ).change(); } };