first upload all files
This commit is contained in:
9
Modules/Report/Resources/assets/admin/js/main.js
Normal file
9
Modules/Report/Resources/assets/admin/js/main.js
Normal file
@@ -0,0 +1,9 @@
|
||||
$('form').on('submit', (e) => {
|
||||
$(e.currentTarget).find(':input').filter((i, el) => {
|
||||
return ! el.value;
|
||||
}).attr('disabled', 'disabled');
|
||||
});
|
||||
|
||||
$('#report-type').on('change', (e) => {
|
||||
window.location = route('admin.reports.index', { type: e.currentTarget.value });
|
||||
});
|
||||
Reference in New Issue
Block a user