Visual indication while saving the settings
* Button label change to "applying changes" * Button become disabled * Cursor changes to "progress" Bug: 53772 Change-Id: I1de459590ea9b357965a73f274d566eba8c04482
This commit is contained in:
committed by
Amir E. Aharoni
parent
6a7fe531d2
commit
277b0db94d
@@ -573,6 +573,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
displaySettings.$parent.setBusy( true );
|
||||
// Save the preferences
|
||||
mw.webfonts.preferences.save( function ( result ) {
|
||||
var newFonts = mw.webfonts.preferences.registry.fonts || {},
|
||||
@@ -595,6 +596,7 @@
|
||||
displaySettings.dirty = false;
|
||||
// Update the back-up preferences for the case of canceling
|
||||
displaySettings.savedRegistry = $.extend( true, {}, mw.webfonts.preferences );
|
||||
displaySettings.$parent.setBusy( false );
|
||||
} );
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user