SuchetaG has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/55153


Change subject: (Bug 39389) Now the collaboration is enabled by default.
......................................................................

(Bug 39389) Now the collaboration is enabled by default.

Change-Id: I3acf9bc043958527461810972b318278eb9cb6c0
---
M modules/ext.etherEditor.js
1 file changed, 15 insertions(+), 15 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EtherEditor 
refs/changes/53/55153/1

diff --git a/modules/ext.etherEditor.js b/modules/ext.etherEditor.js
index ca37456..0db1bc3 100644
--- a/modules/ext.etherEditor.js
+++ b/modules/ext.etherEditor.js
@@ -543,7 +543,21 @@
                 */
                initializeCollabControls: function () {
                        var _this = this;
-                       var $turnOnCollab = $( '<input 
id="ethereditor-collab-switch" type="checkbox"/>' );
+                       var $turnOnCollab = $( '<input 
id="ethereditor-collab-switch" type="checkbox" checked="checked"/>' );
+                       var $collabLabel = $( '<label></label>' );
+                       $collabLabel.html( mw.msg( 
'ethereditor-collaborate-button' ) );
+                       $collabLabel.append( $turnOnCollab );
+                       _this.$ctrls.append( $collabLabel );
+
+                       _this.$sharelink = $( '<input />' )
+                               .attr( 'type', 'text' )
+                               .attr( 'readonly', 'readonly' );
+                       _this.$ctrls.append( _this.$sharelink );
+
+                       _this.$pctrls = $( '<span></span>' );
+                       _this.$pctrls.attr( 'id', 'ethereditor-pad-ctrls' );
+                       _this.$ctrls.append( _this.$pctrls );
+
                        /**
                        * Display message that you leave collaborative editor
                        */
@@ -559,20 +573,6 @@
                                        _this.disableEther();
                                }
                        } );
-
-                       var $collabLabel = $( '<label></label>' );
-                       $collabLabel.html( mw.msg( 
'ethereditor-collaborate-button' ) );
-                       $collabLabel.append( $turnOnCollab );
-                       _this.$ctrls.append( $collabLabel );
-
-                       _this.$sharelink = $( '<input />' )
-                               .attr( 'type', 'text' )
-                               .attr( 'readonly', 'readonly' );
-                       _this.$ctrls.append( _this.$sharelink );
-
-                       _this.$pctrls = $( '<span></span>' );
-                       _this.$pctrls.attr( 'id', 'ethereditor-pad-ctrls' );
-                       _this.$ctrls.append( _this.$pctrls );
 
                        var eventHandle = function () {
                                this.selectionStart = 0;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3acf9bc043958527461810972b318278eb9cb6c0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EtherEditor
Gerrit-Branch: master
Gerrit-Owner: SuchetaG <[email protected]>

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

Reply via email to