diff --git a/converse.css b/converse.css index 4213c4887..4d1818e35 100644 --- a/converse.css +++ b/converse.css @@ -167,7 +167,6 @@ ul.participant-list li.moderator { .chat-message-room { font-weight: bold; color: #4B7003; - white-space: nowrap; } .chat-message-them { @@ -388,7 +387,7 @@ a.configure-chatroom-button { padding-top: 0.5em; } -.configure-chatroom-container { +.chatroom-form-container { color: #666; padding: 5px; height: 262px; @@ -397,26 +396,26 @@ a.configure-chatroom-button { border-bottom-left-radius: 4px; } -.configure-chatroom { +.chatroom-form { background: white; font-size: 12px; padding: 0; } -.configure-chatroom legend { +.chatroom-form legend { font-size: 14px; font-weight: bold; margin-bottom: 5px; } -.configure-chatroom label { +.chatroom-form label { font-weight: bold; display: block; clear: both; } -.configure-chatroom label input, -.configure-chatroom label select { +.chatroom-form label input, +.chatroom-form label select { float: right; } diff --git a/converse.js b/converse.js index 20dc01a8b..984349978 100644 --- a/converse.js +++ b/converse.js @@ -1102,8 +1102,8 @@ form_select_template: _.template(''), form_checkbox_template: _.template(''), - showRoomConfiguration: function (stanza) { - var $form= this.$el.find('form.configure-chatroom'), + renderConfigurationForm: function (stanza) { + var $form= this.$el.find('form.chatroom-form'), $stanza = $(stanza), $fields = $stanza.find('field'), title = $stanza.find('title').text(), @@ -1187,7 +1187,7 @@ ); } }); - this.$el.find('div.configure-chatroom-container').hide( + this.$el.find('div.chatroom-form-container').hide( function () { $(this).remove(); that.$el.find('.chat-area').show(); @@ -1206,7 +1206,7 @@ cancelConfiguration: function (ev) { ev.preventDefault(); var that = this; - this.$el.find('div.configure-chatroom-container').hide( + this.$el.find('div.chatroom-form-container').hide( function () { $(this).remove(); that.$el.find('.chat-area').show(); @@ -1216,27 +1216,56 @@ configureChatRoom: function (ev) { ev.preventDefault(); - if (this.$el.find('div.configure-chatroom-container').length) { + if (this.$el.find('div.chatroom-form-container').length) { return; } this.$el.find('.chat-area').hide(); this.$el.find('.participants').hide(); this.$el.find('.chat-body').append( - $('