Explorar el Código

Bugfix. Don't append, replace.

Otherwise, if the same error presence is received twice, the form will render
twice.
JC Brand hace 11 años
padre
commit
db24bf7a70
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -2173,7 +2173,7 @@
 
             renderPasswordForm: function () {
                 this.$el.find('span.centered.spinner').remove();
-                this.$el.find('.chat-body').append(
+                this.$el.find('.chat-body').html(
                     $('<div class="chatroom-form-container">'+
                         '<form class="chatroom-form">'+
                             '<legend>'+__('This chatroom requires a password')+'</legend>' +