浏览代码

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>' +