xmpp.chapril.org-conversejs/mockup/modals.js

18 lines
373 B
JavaScript
Raw Normal View History

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