xmpp.chapril.org-conversejs/mockup/bs4/user-panel.js

18 lines
379 B
JavaScript
Raw Normal View History

2018-01-22 07:37:20 +01:00
/*global Backbone, _, window */
const UserPanel = Backbone.NativeView.extend({
el: 'div#users',
initialize () {
this.render();
},
render () {
const xhr = new XMLHttpRequest();
xhr.open('GET', 'user-panel.html', true);
xhr.onload = () => {
this.el.innerHTML = xhr.responseText;
}
xhr.send();
}
});