2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-02 23:54:28 -06:00

[wip upload-image] bugfix error popup

This commit is contained in:
Nathanaël Jourdane 2019-03-05 10:08:01 +01:00
parent c7275aa72b
commit e1536da530

View File

@ -1199,7 +1199,7 @@ function humanFileSize(bytes, units) {
function uploadImage(file, options, onSuccess, onError) { function uploadImage(file, options, onSuccess, onError) {
if (file.size >= options.imageMaxSize) { if (file.size >= options.imageMaxSize) {
var units = options.imageTexts.sizeUnits.split(','); var units = options.imageTexts.sizeUnits.split(',');
alert(options.text.errorImageTooBig alert(options.imageTexts.errorImageTooBig
.replace('#image_name#', file.name) .replace('#image_name#', file.name)
.replace('#image_size#', humanFileSize(file.size, units)) .replace('#image_size#', humanFileSize(file.size, units))
.replace('#image_max_size#', humanFileSize(options.imageMaxSize, units)) .replace('#image_max_size#', humanFileSize(options.imageMaxSize, units))