mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-18 02:51:26 +00:00
Don't reload the page on mobile
Bug: T301839 Depends-On: I0985dd5e8db6f82df882c6f4de4ef3821a0eef13 Change-Id: Ic02de79627b813c1fa6f0e537288206bfb1dbd1c
This commit is contained in:
parent
750c084104
commit
64c76f54a3
|
@ -523,14 +523,6 @@ function update( data, threadItem, pageName, replyWidget ) {
|
|||
linksController = null;
|
||||
// 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
|
||||
mw.dt.initState.repliedTo = threadItem.id;
|
||||
|
||||
|
|
Loading…
Reference in a new issue