2 // Matches EditPage::POST_EDIT_COOKIE_KEY_PREFIX
3 var cookieKey
= mw
.config
.get( 'wgCookiePrefix' ) + 'PostEditRevision' + mw
.config
.get( 'wgCurRevisionId' );
5 if ( $.cookie( cookieKey
) === '1' ) {
6 // We just saved this page
7 $.cookie( cookieKey
, null, { path
: '/' } );
8 mw
.config
.set( 'wgPostEdit', true );
10 } ( mediaWiki
, jQuery
) );