Prechádzať zdrojové kódy

Only show the controlbox after attaching. Updates #41.

JC Brand 12 rokov pred
rodič
commit
502b922515
1 zmenil súbory, kde vykonal 1 pridanie a 3 odobranie
  1. 1 3
      converse.js

+ 1 - 3
converse.js

@@ -2673,9 +2673,6 @@
                 e.preventDefault(); this.toggleControlBox();
                 e.preventDefault(); this.toggleControlBox();
             }, this)
             }, this)
         );
         );
-        if (this.show_controlbox_by_default) {
-            this.toggleControlBox();
-        }
         if (this.prebind) {
         if (this.prebind) {
             if (!this.connection) {
             if (!this.connection) {
                 if ((!this.jid) || (!this.sid) || (!this.rid) || (!this.bosh_service_url)) {
                 if ((!this.jid) || (!this.sid) || (!this.rid) || (!this.bosh_service_url)) {
@@ -2688,6 +2685,7 @@
                 this.onConnected();
                 this.onConnected();
             }
             }
         }
         }
+        if (this.show_controlbox_by_default) { this.showControlBox(); }
     };
     };
     return {
     return {
         'initialize': function (settings) {
         'initialize': function (settings) {