Fix bug: Cannot apply changes after switching panels back and forth
Bug: 57011 Change-Id: I0614d97dea99781f46bb80a496b12c95aef55c8c
This commit is contained in:
committed by
Amire80
parent
b2f9e4211e
commit
be99ff9a55
@@ -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?!
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user