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:
Santhosh Thottingal
2013-11-14 17:31:35 +05:30
committed by Amir E. Aharoni
parent 6a7fe531d2
commit 277b0db94d
6 changed files with 33 additions and 1 deletions

View File

@@ -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 );
} );
},