mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-10 09:33:08 +01:00
Fixed loops in upload
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
this.options.thumbnail.call(this, args.file, args.file.extras.url);
|
||||
}
|
||||
} else if (args.mode == 'removeFile') {
|
||||
args.file.rejected = true;
|
||||
this.removeFile(args.file);
|
||||
}
|
||||
|
||||
@@ -72,7 +73,7 @@
|
||||
});
|
||||
|
||||
this.on('removedfile', function(file) {
|
||||
if (!file.accepted) return;
|
||||
if (!file.accepted || file.rejected) return;
|
||||
thisDropzone = this;
|
||||
$.post(URI + '/task:delmedia', {filename: file.name}, function(data){
|
||||
$.proxy(modalError, thisDropzone, {
|
||||
|
||||
Reference in New Issue
Block a user