Browse Source

Use 'hidden' class instead of `.hide()`. Fixes #706

JC Brand 8 years ago
parent
commit
d26d41a701
2 changed files with 4 additions and 3 deletions
  1. 1 0
      docs/CHANGES.md
  2. 3 3
      src/converse-muc.js

+ 1 - 0
docs/CHANGES.md

@@ -2,6 +2,7 @@
 
 ## 2.0.1 (Unreleased)
 - #203 New configuration setting [muc_domain](https://conversejs.org/docs/html/configuration.html#muc_domain) [jcbrand]
+- #705 White content after submitting password on chatrooms [jcbrand]
 - #712 Controlbox clicks stop responding after auto-reconnect [jcbrand]
 - Removed shared state between tests. All tests are now isolated. [jcbrand]
 - Allow the context (i.e. `this` value) to be passed in when registering event

+ 3 - 3
src/converse-muc.js

@@ -914,7 +914,7 @@
                 },
 
                 renderPasswordForm: function () {
-                    this.$('.chatroom-body').children().hide();
+                    this.$('.chatroom-body').children().addClass('hidden');
                     this.$('span.centered.spinner').remove();
                     this.$('.chatroom-body').append(
                         converse.templates.chatroom_password_form({
@@ -926,8 +926,8 @@
                 },
 
                 showDisconnectMessage: function (msg) {
-                    this.$('.chat-area').hide();
-                    this.$('.occupants').hide();
+                    this.$('.chat-area').addClass('hidden');
+                    this.$('.occupants').addClass('hidden');
                     this.$('span.centered.spinner').remove();
                     this.$('.chatroom-body').append($('<p>'+msg+'</p>'));
                 },