jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/395606 )
Change subject: Default to regular font size in special mobileoptions
......................................................................
Default to regular font size in special mobileoptions
Raynor flagged that in incognito window the font size defaults
to small. This corrects that.
Bug: T169369
Change-Id: Idbe4c0f99cbb27a246647537e5ef0399efc1f4d6
---
M resources/mobile.special.mobileoptions.scripts/mobileoptions.js
1 file changed, 3 insertions(+), 2 deletions(-)
Approvals:
Pmiazga: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/resources/mobile.special.mobileoptions.scripts/mobileoptions.js
b/resources/mobile.special.mobileoptions.scripts/mobileoptions.js
index 4f454f9..228b142 100644
--- a/resources/mobile.special.mobileoptions.scripts/mobileoptions.js
+++ b/resources/mobile.special.mobileoptions.scripts/mobileoptions.js
@@ -48,10 +48,11 @@
* @ignore
*/
function addFontChangerToForm( $form ) {
- var fontChanger, fontChangerDropdown;
+ var fontChanger, fontChangerDropdown,
+ currentFontSize = storage.get( FONT_SIZE_KEY );
fontChangerDropdown = new OO.ui.DropdownInputWidget( {
- value: parseInt( storage.get( FONT_SIZE_KEY ), 10 ),
+ value: currentFontSize ? parseInt( currentFontSize, 10
) : 100,
options: [
{
data: 90,
--
To view, visit https://gerrit.wikimedia.org/r/395606
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Idbe4c0f99cbb27a246647537e5ef0399efc1f4d6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: specialpages
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: Pmiazga <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits