mw.ViewPageTarget: Fire 'wikipage.content' hook after saving

Bug: 51565
Change-Id: I5b6dcd3cb425d2763cc3069e3cbc04be7a57af4c
This commit is contained in:
Timo Tijhof 2013-07-30 19:35:23 +02:00
parent f5c8af541a
commit bdd7aa5e3c

View file

@ -2072,7 +2072,8 @@ ve.init.mw.ViewPageTarget.prototype.onWindowPopState = function () {
* @param {HTMLElement} html Rendered HTML from server
*/
ve.init.mw.ViewPageTarget.prototype.replacePageContent = function ( html ) {
$( '#mw-content-text' ).html( html );
var $content = $( $.parseHTML( html ) );
mw.hook( 'wikipage.content' ).fire( $( '#mw-content-text' ).empty().append( $content ) );
};
/**