javascript: add some comments to the upload systems
This commit is contained in:
parent
2a1c91a2a5
commit
a1083ca253
3 changed files with 10 additions and 1 deletions
|
@ -27,6 +27,8 @@ addUploadEventListener(INITIALIZE_EVENT, ({ target, detail: { id, file } }) => {
|
|||
|
||||
addUploadEventListener(START_EVENT, ({ target, detail: { id } }) => {
|
||||
ProgressBar.start(id);
|
||||
// At the end of the upload, the form will be submitted again.
|
||||
// Avoid the confirm dialog to be presented again then.
|
||||
const button = target.form.querySelector('button.primary');
|
||||
if (button) {
|
||||
button.removeAttribute('data-confirm');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue