We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ff9a0f commit 72d3228Copy full SHA for 72d3228
static/scripts/batch-deletion/batch-deletion-upload.js
@@ -85,8 +85,21 @@ $(document).ready(() => {
85
});
86
$addDeletionModal.appendTo('body').modal('show');
87
resetFormFields();
88
- })
+ });
89
90
document.querySelector('#batch-file-input').addEventListener('change', loadCsvFile);
91
-})
92
+ $(document).on('click', '.add-modal--upload .btn-submit', (e) => {
93
+ $('#batch-upload-spinner').show();
94
+
95
+ if (!$('#batch-file-data').val()) {
96
+ $.showNotification('Bitte eine gültige CSV-Datei auswählen', 'danger', true);
97
+ return;
98
+ }
99
100
+ const $submitBtn = $(e.currentTarget);
101
+ setTimeout(() => {
102
+ $submitBtn.prop('disabled', true);
103
+ }, 0);
104
105
+});
0 commit comments