Santhosh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/74583


Change subject: Update the previous UI and content font whenever font value 
changes
......................................................................

Update the previous UI and content font whenever font value changes

Bug: 50562
Change-Id: I1e89af19149a02ad4ed7a4a6b7f096c258258cf4
---
M resources/js/ext.uls.displaysettings.js
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector 
refs/changes/83/74583/1

diff --git a/resources/js/ext.uls.displaysettings.js 
b/resources/js/ext.uls.displaysettings.js
index 9b2a28b..fdc9cd1 100644
--- a/resources/js/ext.uls.displaysettings.js
+++ b/resources/js/ext.uls.displaysettings.js
@@ -494,7 +494,7 @@
 
                        $uiFontSelector.on( 'change', function () {
                                displaySettings.enableApplyButton();
-
+                               oldUIFont = mw.webfonts.preferences.getFont( 
displaySettings.uiLanguage );
                                mw.webfonts.preferences.setFont( 
displaySettings.uiLanguage,
                                        $( this ).find( 'option:selected' 
).val()
                                );
@@ -503,7 +503,7 @@
 
                        $contentFontSelector.on( 'change', function () {
                                displaySettings.enableApplyButton();
-
+                               oldContentFont = 
mw.webfonts.preferences.getFont( displaySettings.contentLanguage );
                                mw.webfonts.preferences.setFont( 
displaySettings.contentLanguage,
                                        $( this ).find( 'option:selected' 
).val()
                                );

-- 
To view, visit https://gerrit.wikimedia.org/r/74583
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e89af19149a02ad4ed7a4a6b7f096c258258cf4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to