kostajh added a comment.

  In T344984#9120046 <https://phabricator.wikimedia.org/T344984#9120046>, 
@Lucas_Werkmeister_WMDE wrote:
  
  > Which arguments is the hook supposed to be fired with? Is there 
documentation for it anywhere?
  
  AIUI, it is acceptable to fire without any arguments, from 
`resources/src/mediawiki.action/mediawiki.action.view.postEdit.js`:
  
    /**
     * Fired after an edit was successfully saved.
     *
     * Does not fire for null edits.
     *
     * Code that fires the postEdit hook should first set `wgRevisionId` and 
`wgCurRevisionId`
     * to the revision associated with the edit that triggered the postEdit 
hook, then fire
     * the postEdit hook, e.g.:
     *
     *     mw.config.set( {
     *        wgCurRevisionId: data.newrevid,
     *        wgRevisionId: data.newrevid
     *     } );
     *     // Now fire the hook.
     *     mw.hook( 'postEdit' ).fire();         
     */

TASK DETAIL
  https://phabricator.wikimedia.org/T344984

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: kostajh
Cc: Lucas_Werkmeister_WMDE, Dreamy_Jazz, Aklapper, kostajh, 
Danny_Benjafield_WMDE, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, 
ItamarWMDE, Akuckartz, Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, 
Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to