jenkins-bot has submitted this change and it was merged.

Change subject: Clear NewTopicWidget after saving
......................................................................


Clear NewTopicWidget after saving

So that if you create two topics in a row, the text from the
first isn't still in the editor when you start the second.

Bug: T109154
Change-Id: I372f90b7b6e9c0384db8cfd7dd527cce406db94a
---
M modules/flow/ui/widgets/mw.flow.ui.NewTopicWidget.js
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Sbisson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/flow/ui/widgets/mw.flow.ui.NewTopicWidget.js 
b/modules/flow/ui/widgets/mw.flow.ui.NewTopicWidget.js
index dfba77b..2031818 100644
--- a/modules/flow/ui/widgets/mw.flow.ui.NewTopicWidget.js
+++ b/modules/flow/ui/widgets/mw.flow.ui.NewTopicWidget.js
@@ -134,6 +134,10 @@
                                widget.editor.popPending();
                                widget.title.popPending();
                                widget.title.setDisabled( false );
+
+                               // Clear for next use
+                               widget.title.setValue( '' );
+                               widget.editor.setContent( '', 'html' );
                        } );
        };
 

-- 
To view, visit https://gerrit.wikimedia.org/r/231725
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I372f90b7b6e9c0384db8cfd7dd527cce406db94a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>
Gerrit-Reviewer: Sbisson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to