mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Use current preference each time we open a new reply widget
TODO: Switch already setup widgets when we re-open them. Bug: T253888 Change-Id: I6c541f27edbfe373f62b8508381bb5182681bda4
This commit is contained in:
parent
cd216ec538
commit
03a94badfe
|
@ -128,7 +128,8 @@ CommentController.prototype.setup = function ( mode ) {
|
|||
commentController = this;
|
||||
|
||||
if ( mode === undefined ) {
|
||||
mode = defaultVisual ? 'visual' : 'source';
|
||||
mode = ( enableVisual && mw.user.options.get( 'discussiontools-editmode' ) ) ||
|
||||
( defaultVisual ? 'visual' : 'source' );
|
||||
}
|
||||
|
||||
// TODO: Allow users to use multiple reply widgets simultaneously.
|
||||
|
|
Loading…
Reference in a new issue