Commit d7892d94 authored by JC Brand's avatar JC Brand

converse-muc: Bugfix.

Switching from bookmarks form to config form shows only spinner.
parent d109ed94
# Changelog # Changelog
## 2.0.4 (Unreleased)
- Bugfix. Switching from bookmarks form to config form shows only the spinner. [jcbrand]
- Bugfix. Other room occupants sometimes not shown when reloading the page. [jcbrand]
## 2.0.3 (2016-11-30) ## 2.0.3 (2016-11-30)
- #735 Room configuration button not visible. [jcbrand] - #735 Room configuration button not visible. [jcbrand]
- CSS fix for fadeIn animation. [jcbrand] - CSS fix for fadeIn animation. [jcbrand]
......
...@@ -132,6 +132,8 @@ ...@@ -132,6 +132,8 @@
renderBookmarkForm: function () { renderBookmarkForm: function () {
var $body = this.$('.chatroom-body'); var $body = this.$('.chatroom-body');
$body.children().addClass('hidden'); $body.children().addClass('hidden');
// Remove any existing forms
$body.find('form.chatroom-form').remove();
$body.append( $body.append(
converse.templates.chatroom_bookmark_form({ converse.templates.chatroom_bookmark_form({
heading: __('Bookmark this room'), heading: __('Bookmark this room'),
......
...@@ -888,9 +888,11 @@ ...@@ -888,9 +888,11 @@
var that = this, var that = this,
$body = this.$('.chatroom-body'); $body = this.$('.chatroom-body');
$body.children().addClass('hidden'); $body.children().addClass('hidden');
// Remove any existing forms
$body.find('form.chatroom-form').remove();
$body.append(converse.templates.chatroom_form()); $body.append(converse.templates.chatroom_form());
var $form = this.$el.find('form.chatroom-form'), var $form = $body.find('form.chatroom-form'),
$fieldset = $form.children('fieldset:first'), $fieldset = $form.children('fieldset:first'),
$stanza = $(stanza), $stanza = $(stanza),
$fields = $stanza.find('field'), $fields = $stanza.find('field'),
......
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