Commit 6f591149 authored by JC Brand's avatar JC Brand

Drop jquery and use native bootstrap

parent d51d2bea
This diff is collapsed.
......@@ -11,6 +11,11 @@ const UserPanel = Backbone.NativeView.extend({
xhr.open('GET', 'user-panel.html', true);
xhr.onload = () => {
this.el.innerHTML = xhr.responseText;
this.modals = _.map(this.el.querySelectorAll('[data-toggle="modal"]'), (modal_el) =>
new window.Modal(modal_el, {
backdrop: 'static', // we don't want to dismiss Modal when Modal or backdrop is the click event target
keyboard: true // we want to dismiss Modal on pressing Esc key
}));
}
xhr.send();
}
......
This diff is collapsed.
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