Ori.livneh has submitted this change and it was merged. Change subject: (Bug 41805) Show PostEdit on edited page only. ......................................................................
(Bug 41805) Show PostEdit on edited page only. Instead of a boolean, 'isPostEdit', track the ID of the page that was edited, and set that ID as the value of the PostEdit cookie. In JavaScript, only show PostEdit if the value of the cookie is the same as wgArticleId, but clear the cookie regardless. This change also binds the post-edit handler to PageContentSaveComplete rather than ArticleSaveComplete, as the latter has been deprecated. Change-Id: I67d3f2d07bd983e412c23a7dc65cdeb2a9f52c2e --- M PostEdit.hooks.php M PostEdit.php M resources/ext.postEdit.js 3 files changed, 38 insertions(+), 26 deletions(-) Approvals: Ori.livneh: Verified; Looks good to me, approved -- To view, visit https://gerrit.wikimedia.org/r/45082 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I67d3f2d07bd983e412c23a7dc65cdeb2a9f52c2e Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/PostEdit Gerrit-Branch: master Gerrit-Owner: Ori.livneh <[email protected]> Gerrit-Reviewer: Mattflaschen <[email protected]> Gerrit-Reviewer: Ori.livneh <[email protected]> Gerrit-Reviewer: Spage <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
