Fix bug: Cannot apply changes after switching panels back and forth

Bug: 57011
Change-Id: I0614d97dea99781f46bb80a496b12c95aef55c8c
This commit is contained in:
Santhosh Thottingal
2013-11-14 11:10:01 +05:30
committed by Amire80
parent b2f9e4211e
commit be99ff9a55
3 changed files with 8 additions and 9 deletions

View File

@@ -102,7 +102,6 @@
this.$parent.$settingsPanel.empty();
this.$webfonts = $( 'body' ).data( 'webfonts' );
this.$parent.$settingsPanel.append( this.$template );
this.disableApplyButton();
this.prepareLanguages();
this.prepareUIFonts();
this.prepareContentFonts();
@@ -480,10 +479,6 @@
this.$parent.$window.find( 'button.uls-settings-apply' ).removeAttr( 'disabled' );
},
disableApplyButton: function () {
this.$parent.$window.find( 'button.uls-settings-apply' ).prop( 'disabled', true );
},
/**
* Register general event listeners
*/
@@ -567,6 +562,8 @@
if ( this.uiLanguage !== this.getUILanguage() ) {
mw.uls.changeLanguage( this.uiLanguage );
}
// Disable apply button
this.$parent.disableApplyButton();
} // @todo What to do in case of failure?
},