Commit db24bf7a authored by JC Brand's avatar JC Brand

Bugfix. Don't append, replace.

Otherwise, if the same error presence is received twice, the form will render
twice.
parent 6f80bd5a
......@@ -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>' +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment