Alex Monk has uploaded a new change for review.
https://gerrit.wikimedia.org/r/243044
Change subject: Log VE saveIntent/saveAttempt
......................................................................
Log VE saveIntent/saveAttempt
Current code only handles wikitext editor
Bug: T110272
Change-Id: Ic8c9eeba884f1c74272c9f748dd753142418ace3
---
M resources/mobile.editor.ve/ve.init.mw.MobileFrontendArticleTarget.js
1 file changed, 24 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/44/243044/1
diff --git
a/resources/mobile.editor.ve/ve.init.mw.MobileFrontendArticleTarget.js
b/resources/mobile.editor.ve/ve.init.mw.MobileFrontendArticleTarget.js
index 55584a2..112df7f 100644
--- a/resources/mobile.editor.ve/ve.init.mw.MobileFrontendArticleTarget.js
+++ b/resources/mobile.editor.ve/ve.init.mw.MobileFrontendArticleTarget.js
@@ -198,6 +198,30 @@
/*
* FIXME: @inheritdoc once this file is in the right repo
*/
+ve.init.mw.MobileFrontendArticleTarget.prototype.save = function () {
+ // Parent method
+ ve.init.mw.MobileFrontendArticleTarget.super.prototype.save.apply(
this, arguments );
+
+ this.overlay.log( {
+ action: 'saveAttempt'
+ } );
+};
+
+/*
+ * FIXME: @inheritdoc once this file is in the right repo
+ */
+ve.init.mw.MobileFrontendArticleTarget.prototype.showSaveDialog = function () {
+ // Parent method
+
ve.init.mw.MobileFrontendArticleTarget.super.prototype.showSaveDialog.apply(
this, arguments );
+
+ this.overlay.log( {
+ action: 'saveIntent'
+ } );
+};
+
+/*
+ * FIXME: @inheritdoc once this file is in the right repo
+ */
ve.init.mw.MobileFrontendArticleTarget.prototype.saveComplete = function () {
// Parent method
ve.init.mw.MobileFrontendArticleTarget.super.prototype.saveComplete.apply(
this, arguments );
--
To view, visit https://gerrit.wikimedia.org/r/243044
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic8c9eeba884f1c74272c9f748dd753142418ace3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits