From feb3695ebee603a2a011704eea4bf984ab552d65 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 14 May 2013 22:13:05 +0200 Subject: [PATCH] Tweak the error message styling --- converse.css | 6 ++++++ converse.js | 4 ++-- spec/ChatRoomSpec.js | 11 +++++------ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/converse.css b/converse.css index 4d1818e35..008df313a 100644 --- a/converse.css +++ b/converse.css @@ -402,6 +402,12 @@ a.configure-chatroom-button { padding: 0; } +.chat-body p { + font-size: 14px; + color: #666; + margin: 5px; +} + .chatroom-form legend { font-size: 14px; font-weight: bold; diff --git a/converse.js b/converse.js index 45a1faca7..3900f8766 100644 --- a/converse.js +++ b/converse.js @@ -1317,7 +1317,7 @@ if ($error.find('not-allowed').length) { this.renderErrorMessage('You are not allowed to create new rooms'); } else if ($error.find('not-acceptable').length) { - this.renderErrorMessage("Your nickname doesn't conform to the room's policies"); + this.renderErrorMessage("Your nickname doesn't conform to this room's policies"); } else if ($error.find('conflict').length) { this.renderErrorMessage("Your nickname is already taken"); } else if ($error.find('item-not-found').length) { @@ -2314,7 +2314,7 @@ connect: function (jid, password) { var connection = new Strophe.Connection(converse.bosh_service_url); - connection.connect(jid, password, $.proxy(function (status) { + connection.connect(jid, password, $.proxy(function (status, message) { if (status === Strophe.Status.CONNECTED) { console.log('Connected'); converse.onConnected(connection); diff --git a/spec/ChatRoomSpec.js b/spec/ChatRoomSpec.js index 779abe055..b10e39009 100644 --- a/spec/ChatRoomSpec.js +++ b/spec/ChatRoomSpec.js @@ -26,14 +26,14 @@ }, converse)); it("shows users currently present in the room", $.proxy(function () { - var chatroomview = this.chatboxesview.views['lounge@muc.localhost']; - chatroomview.renderChatArea(); - var $participant_list = chatroomview.$el.find('.participant-list'); + var chatroomview = this.chatboxesview.views['lounge@muc.localhost'], + $participant_list; var roster = {}, room = {}, i; for (i=0; i