Commit 3bf5eeb4 authored by JC Brand's avatar JC Brand

Bugfix. Could not render chat room configuration form.

parent 9359c76c
......@@ -2410,14 +2410,15 @@
var $form= this.$el.find('form.chatroom-form'),
$stanza = $(stanza),
$fields = $stanza.find('field'),
title = $stanza.find('title').text();
title = $stanza.find('title').text(),
instructions = $stanza.find('instructions').text();
$form.find('span.spinner').remove();
$form.append($('<legend>').text(title));
if (instructions != title) {
$form.append($('<p class="instructions">').text(this.instructions));
if (instructions && instructions != title) {
$form.append($('<p class="instructions">').text(instructions));
}
_.each($fields, function (field) {
$form.append(utils.xForm2webForm(field));
$form.append(utils.xForm2webForm($(field), $stanza));
});
$form.append('<input type="submit" value="'+__('Save')+'"/>');
$form.append('<input type="button" value="'+__('Cancel')+'"/>');
......
......@@ -5,6 +5,7 @@ Changelog
------------------
* Bugfix. Login panel didn't appear under certain conditions. [jcbrand]
* Bugfix. Error when trying to render chat room configuration form. [jcbrand]
* Text on the registration form was not configurable or i18n aware. [jcbrand]
* #285 With prebind the jid, rid and sid settings were ignored. [jcbrand]
......
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