jenkins-bot has submitted this change and it was merged.

Change subject: Fix: Tag mobile edits
......................................................................


Fix: Tag mobile edits

This should fix it. In the worst case it will do nothing.

Change-Id: Ib42b64c0feb8614447709db6f1744bd900e408ab
---
M javascripts/modules/editor/EditorApi.js
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Jdlrobson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/javascripts/modules/editor/EditorApi.js 
b/javascripts/modules/editor/EditorApi.js
index d6540c2..0ce1dea 100644
--- a/javascripts/modules/editor/EditorApi.js
+++ b/javascripts/modules/editor/EditorApi.js
@@ -83,7 +83,8 @@
                                        options.section = self.sectionId;
                                }
 
-                               self.post( options ).done( function( data ) {
+                               // FIXME: possibly M.getApiUrl() should already 
return URL with ?useformat=mobile by default?
+                               self.post( options, { url: M.getApiUrl() + 
'?useformat=mobile' } ).done( function( data ) {
                                        if ( data && data.error ) {
                                                result.reject( data.error.code 
);
                                        } else {

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

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

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

Reply via email to