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

@@ -105,10 +105,6 @@
this.$parent.$window.find( 'button.uls-settings-apply' ).prop( 'disabled', false );
},
disableApplyButton: function () {
this.$parent.$window.find( 'button.uls-settings-apply' ).prop( 'disabled', true );
},
prepareInputmethods: function ( language ) {
var index, inputSettings, $imeListContainer, defaultInputmethod,
imes, selected, imeId, $imeListTitle;
@@ -494,6 +490,8 @@
if ( success ) {
// Live ime update
this.$parent.hide();
// Disable apply button
this.$parent.disableApplyButton();
}
// FIXME in case of failure. what to do?!
},