Don't reload the page on mobile

Bug: T301839
Depends-On: I0985dd5e8db6f82df882c6f4de4ef3821a0eef13
Change-Id: Ic02de79627b813c1fa6f0e537288206bfb1dbd1c
This commit is contained in:
Ed Sanders 2022-02-18 17:50:29 +00:00
parent 750c084104
commit 64c76f54a3

View file

@ -523,14 +523,6 @@ function update( data, threadItem, pageName, replyWidget ) {
linksController = null; linksController = null;
// TODO: Tell controller to teardown all other open widgets // TODO: Tell controller to teardown all other open widgets
if ( OO.ui.isMobile() ) {
// MobileFrontend does not use the 'wikipage.content' hook, and its interface will not
// re-initialize properly (e.g. page sections won't be collapsible). Reload the whole page.
window.location = mw.util.getUrl( pageName, { dtrepliedto: threadItem.id } );
logSaveSuccess();
return;
}
// Highlight the new reply after re-initializing // Highlight the new reply after re-initializing
mw.dt.initState.repliedTo = threadItem.id; mw.dt.initState.repliedTo = threadItem.id;