Catrope has uploaded a new change for review.
https://gerrit.wikimedia.org/r/231725
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/25/231725/1
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: newchange
Gerrit-Change-Id: I372f90b7b6e9c0384db8cfd7dd527cce406db94a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits