Update the local copy of preferences before saving to reflect other module changes

Change-Id: Idfd6d4f71eff9d1a1e6606b3fa91abf9ddc7b183
This commit is contained in:
Santhosh Thottingal
2013-11-22 12:05:42 +05:30
parent 3a2fe65199
commit d1647a9fa0
2 changed files with 4 additions and 0 deletions

View File

@@ -69,6 +69,8 @@
return; return;
} }
// get updated copy of preferences
inputPreferences = mw.uls.preferences();
inputPreferences.set( 'ime', this.registry ); inputPreferences.set( 'ime', this.registry );
inputPreferences.save( callback ); inputPreferences.save( callback );
// reset the dirty bit // reset the dirty bit

View File

@@ -36,6 +36,8 @@
}, },
save: function ( callback ) { save: function ( callback ) {
// get updated copy of preferences
ulsPreferences = mw.uls.preferences();
ulsPreferences.set( 'webfonts', this.registry ); ulsPreferences.set( 'webfonts', this.registry );
ulsPreferences.save( callback ); ulsPreferences.save( callback );
}, },