summaryrefslogtreecommitdiff
path: root/assets/js/components/form-export.js
blob: c46fede10baf32fb23d2511ce4fdbed2d0e3d044 (plain)
1
2
3
4
5
6
7
8
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();
    }
});