mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-29 11:30:50 +08:00
Floating page content bugfix and prevent incompatable image uploads. Fixes #26.
This commit is contained in:
@ -110,6 +110,12 @@
|
||||
dz.removeFile(file);
|
||||
});
|
||||
});
|
||||
this.on('error', function(file, errorMessage, xhr) {
|
||||
if(errorMessage.file) {
|
||||
$(file.previewElement).find('[data-dz-errormessage]').text(errorMessage.file[0]);
|
||||
}
|
||||
console.log(errorMessage);
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user