mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Pass through watchlist state to response data
This got lost when the watchlist updating code was refactored out into controller.js, as it assumes that 'data' (the post data) is still available. Bug: T261362 Change-Id: Id274e7b8518b62dddbc3d4095d9f6cab17aa17cd
This commit is contained in:
parent
d36ffeaa3d
commit
c240f281a4
|
@ -307,6 +307,8 @@ CommentController.prototype.save = function ( comment, pageName ) {
|
|||
}
|
||||
return $.Deferred().reject( code, responseData ).promise();
|
||||
} ).then( function ( responseData ) {
|
||||
// Pass through watchlist state.
|
||||
responseData.watchlist = data.watchlist;
|
||||
controller.update( responseData, comment, pageName, replyWidget );
|
||||
} );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue