mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 14:25:52 +01:00
WebClient: clear file upload list on explicit cancel
Avoid clearing the file list every time the modal is opened, as the modal might be closed unintentionally (e.g., by clicking outside it) Fixes #1981 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
483ea380d7
commit
3681842315
1 changed files with 4 additions and 1 deletions
|
|
@ -2219,6 +2219,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
uploadFiles(dropzone.getAcceptedFiles());
|
||||
}
|
||||
});
|
||||
$("#upload_files_cancel").click(function(){
|
||||
dropzone.removeAllFiles();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -2471,7 +2474,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
</form>
|
||||
</div>
|
||||
<div class="modal-footer border-0">
|
||||
<button data-i18n="general.cancel" type="button" class="btn btn-light me-5" data-bs-dismiss="modal">Cancel</button>
|
||||
<button data-i18n="general.cancel" type="button" id="upload_files_cancel" class="btn btn-light me-5" data-bs-dismiss="modal">Cancel</button>
|
||||
<button data-i18n="general.submit" type="button" id="upload_files_button" class="btn btn-primary" data-bs-dismiss="modal">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue