Преглед на файлове

Bugfix. Don't append, replace.

Otherwise, if the same error presence is received twice, the form will render
twice.
JC Brand преди 11 години
родител
ревизия
db24bf7a70
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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>' +