https://bugzilla.wikimedia.org/show_bug.cgi?id=43270

       Web browser: ---
            Bug ID: 43270
           Summary: Add wgPostEdit are core JavaScript variable
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: JavaScript
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I think it is worth adding a boolean variable wgPostEdit, which is true if and
only if the user just saved the article.

Right now, this is implemented in
https://www.mediawiki.org/wiki/Extension:PostEdit , but the real point of the
extension is to show a visual notification.  Other extensions ideally shouldn't
have to depend on all that just to get a boolean.  E3Experiments currently uses
it implicitly (I will temporarily make it an explicit dependency), and I'm sure
there are other extensions and gadgets that could use it.

It looks like this could maybe be implemented in attemptSave, but I'm open to
suggestions.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to