Commit 76cc9642 authored by JC Brand's avatar JC Brand

roomslist: replace jQuery methods with native

parent 2fe77b8a
......@@ -70,7 +70,7 @@
});
this.hide();
if (this.list_model.get('toggle-state') !== _converse.OPENED) {
this.$('.open-rooms-list').hide();
this.el.querySelector('.open-rooms-list').classList.add('hidden');
}
this.model.each(this.renderRoomsListElement.bind(this));
const controlboxview = _converse.chatboxviews.get('controlbox');
......@@ -95,8 +95,8 @@
closeRoom (ev) {
ev.preventDefault();
const name = $(ev.target).data('roomName');
const jid = $(ev.target).data('roomJid');
const name = ev.target.getAttribute('data-room-name');
const jid = ev.target.getAttribute('data-room-jid');
if (confirm(__(___("Are you sure you want to leave the room \"%1$s\"?"), name))) {
_converse.chatboxviews.get(jid).leave();
}
......
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