(e)
| 618 | } |
| 619 | |
| 620 | let removeFileEvent = (e) => { |
| 621 | e.preventDefault(); |
| 622 | e.stopPropagation(); |
| 623 | if (file.status === Dropzone.UPLOADING) { |
| 624 | return Dropzone.confirm( |
| 625 | this.options.dictCancelUploadConfirmation, |
| 626 | () => this.removeFile(file) |
| 627 | ); |
| 628 | } else { |
| 629 | if (this.options.dictRemoveFileConfirmation) { |
| 630 | return Dropzone.confirm( |
| 631 | this.options.dictRemoveFileConfirmation, |
| 632 | () => this.removeFile(file) |
| 633 | ); |
| 634 | } else { |
| 635 | return this.removeFile(file); |
| 636 | } |
| 637 | } |
| 638 | }; |
| 639 | |
| 640 | for (let removeLink of file.previewElement.querySelectorAll( |
| 641 | "[data-dz-remove]" |
nothing calls this directly
no test coverage detected
searching dependent graphs…