Bugfix. "ev" isn't necessarily defined.

This commit is contained in:
JC Brand 2014-10-15 22:56:45 +02:00
parent 80b8fed6cd
commit 35928308c8

View File

@ -1051,7 +1051,7 @@
},
clearChatRoomMessages: function (ev) {
ev.stopPropagation();
if (typeof ev !== "undefined") { ev.stopPropagation(); }
var result = confirm(__("Are you sure you want to clear the messages from this room?"));
if (result === true) {
this.$el.find('.chat-content').empty();