MaxSem has submitted this change and it was merged.

Change subject: Bug 49218: Hide errors in preview output
......................................................................


Bug 49218: Hide errors in preview output

Dependencies:
Iacfea0219ef21dc91d669f51140ec129c2f41f76

Change-Id: I5bf781c99efd4a7f339e5ebc039efa695bfab338
---
M javascripts/modules/editor/PreviewOverlay.js
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  MaxSem: Verified; Looks good to me, approved



diff --git a/javascripts/modules/editor/PreviewOverlay.js 
b/javascripts/modules/editor/PreviewOverlay.js
index dec97d1..f7c8178 100644
--- a/javascripts/modules/editor/PreviewOverlay.js
+++ b/javascripts/modules/editor/PreviewOverlay.js
@@ -24,6 +24,10 @@
                        } );
                        api.post( {
                                action: 'parse',
+                               // the following two parameters are here due to 
API (don't ask)
+                               preview: true,
+                               // This means "I am section #0 - it doesn't 
matter if this is not true" \o/ API
+                               section: 0,
                                title: options.title,
                                text: options.wikitext,
                                prop: 'text'

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I5bf781c99efd4a7f339e5ebc039efa695bfab338
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>

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

Reply via email to