From 64eb5d2f4ab2d77d91d5bf1cf060bca504aae8bb Mon Sep 17 00:00:00 2001 From: JC Brand Date: Mon, 4 Apr 2016 10:34:23 +0000 Subject: [PATCH] Fix grammar --- spec/chatroom.js | 4 ++-- src/converse-muc.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/chatroom.js b/spec/chatroom.js index b5381137c..533e75552 100644 --- a/spec/chatroom.js +++ b/spec/chatroom.js @@ -642,7 +642,7 @@ expect(view.$el.find('.chatroom-body p:last').text()).toBe("This room does not (yet) exist"); }.bind(converse)); - it("will show an error message if the room has reached it's maximum number of occupants", function () { + it("will show an error message if the room has reached its maximum number of occupants", function () { var presence = $pres().attrs({ from:'lounge@localhost/thirdwitch', id:'n13mt3l', @@ -654,7 +654,7 @@ var view = this.chatboxviews.get('problematic@muc.localhost'); spyOn(view, 'showErrorMessage').andCallThrough(); view.onChatRoomPresence(presence, {'nick': 'dummy'}); - expect(view.$el.find('.chatroom-body p:last').text()).toBe("This room has reached it's maximum number of occupants"); + expect(view.$el.find('.chatroom-body p:last').text()).toBe("This room has reached its maximum number of occupants"); }.bind(converse)); }.bind(converse)); }.bind(converse, mock, test_utils)); diff --git a/src/converse-muc.js b/src/converse-muc.js index 8d1d7787e..d99750677 100755 --- a/src/converse-muc.js +++ b/src/converse-muc.js @@ -802,7 +802,7 @@ } else if ($error.find('item-not-found').length) { this.showDisconnectMessage(__("This room does not (yet) exist")); } else if ($error.find('service-unavailable').length) { - this.showDisconnectMessage(__("This room has reached it's maximum number of occupants")); + this.showDisconnectMessage(__("This room has reached its maximum number of occupants")); } } },