Merge "LanguageSettings: Do not render modules twice on initialization"

This commit is contained in:
jenkins-bot authored and Gerrit Code Review committed 2016-08-16 10:03:00 +00:00
commit f44d97230b
1 file changed
+4 -4
+4 -4
View File
@@ -139,6 +139,10 @@
$settingsText
);
if ( active ) {
$settingsLink.addClass( 'active' );
}
$settingsMenuItems.append( $settingsLink );
$settingsLink.on( 'click', function () {
@@ -151,10 +155,6 @@
$this.addClass( 'active' );
} );
if ( active ) {
module.render();
$settingsLink.addClass( 'active' );
}
this.modules[ moduleName ] = module;
// Register cancel and apply hooks