Display project exports in modal box

This commit is contained in:
Frederic Guillot
2017-01-08 15:31:33 -05:00
parent b3a450bace
commit ca00b8cf53
13 changed files with 74 additions and 81 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,9 @@
KB.onClick('.js-form-export', function(e) {
var formElement = document.querySelector('#modal-content form');
var fromElement = formElement.querySelector('#form-from');
var toElement = formElement.querySelector('#form-to');
if (fromElement.value !== '' && toElement.value !== '') {
formElement.submit();
}
});

View File

@@ -19,7 +19,7 @@
}
function getForm() {
return document.querySelector('#modal-content form');
return document.querySelector('#modal-content form:not(.js-modal-ignore-form)');
}
function submitForm() {