Ori.livneh has uploaded a new change for review.

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, 36 insertions(+), 22 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PostEdit 
refs/changes/82/45082/1
--
To view, visit https://gerrit.wikimedia.org/r/45082
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I67d3f2d07bd983e412c23a7dc65cdeb2a9f52c2e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PostEdit
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>

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

Reply via email to