mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 16:34:21 +00:00
Merge "Clear page data cache after posting a reply"
This commit is contained in:
commit
8cd5dc386b
|
@ -254,6 +254,10 @@ function update( data, comment, pageName, replyWidget ) {
|
|||
var watch,
|
||||
pageUpdated = $.Deferred();
|
||||
|
||||
// We posted a new comment, clear the cache, because wgCurRevisionId will not change if we posted
|
||||
// to a transcluded page (T266275)
|
||||
pageDataCache[ mw.config.get( 'wgRelevantPageName' ) ][ mw.config.get( 'wgCurRevisionId' ) ] = null;
|
||||
|
||||
replyWidget.teardown();
|
||||
// TODO: Tell controller to teardown all other open widgets
|
||||
|
||||
|
|
Loading…
Reference in a new issue