Commit ccb97eb7 authored by JC Brand's avatar JC Brand

Remove jquery from converse-controlbox

parent 29b5c3e3
This diff is collapsed.
......@@ -349,10 +349,10 @@
);
if (this.model.get('type') === 'chatroom') {
data.title = this.model.get('name');
u.addClass(this.el, 'chat-head-chatroom');
u.addClass('chat-head-chatroom', this.el);
} else {
data.title = this.model.get('fullname');
u.addClass(this.el, 'chat-head-chatbox');
u.addClass('chat-head-chatbox', this.el);
}
this.el.innerHTML = tpl_trimmed_chat(data);
return this.el;
......
......@@ -87,15 +87,15 @@
var u = {};
u.addClass = function (el, className) {
u.addClass = function (className, el) {
if (el instanceof Element) {
el.classList.add(className);
}
}
u.removeClass = function (klass, el) {
u.removeClass = function (className, el) {
if (el instanceof Element) {
el.classList.remove(klass);
el.classList.remove(className);
}
return el;
}
......
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