Add a new `addModalOptions()` hook which allows to supply additional
cbi options the modal map before the dialog is rendered.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
.catch(function() {});
},
+ addModalOptions: function(modalSection, section_id, ev) {
+
+ },
+
renderMoreOptionsModal: function(section_id, ev) {
var parent = this.map,
title = parent.title,
}
//ev.target.classList.add('spinning');
- m.render().then(L.bind(function(nodes) {
+ Promise.resolve(this.addModalOptions(s, section_id, ev)).then(L.bind(m.render, m)).then(L.bind(function(nodes) {
//ev.target.classList.remove('spinning');
L.ui.showModal(title, [
nodes,