Commit 35928308 authored by JC Brand's avatar JC Brand

Bugfix. "ev" isn't necessarily defined.

parent 80b8fed6
......@@ -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();
......
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