From 0558fb0d68536170f4102af2ea128039f24830c3 Mon Sep 17 00:00:00 2001 From: Jeroen Akkerman Date: Thu, 18 Jul 2019 14:29:54 +0200 Subject: [PATCH] Increase timeout of error message to 10s --- src/js/easymde.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/easymde.js b/src/js/easymde.js index 99d42c1..68503af 100644 --- a/src/js/easymde.js +++ b/src/js/easymde.js @@ -1981,11 +1981,13 @@ EasyMDE.prototype.uploadImage = function (file, onSuccess, onError) { }; function onErrorSup(errorMessage) { - // show error on status bar and reset after 1000ms + // show error on status bar and reset after 10000ms self.updateStatusBar('upload-image', errorMessage); + setTimeout(function () { self.updateStatusBar('upload-image', self.options.imageTexts.sbInit); - }, 1000); + }, 10000); + // run custom error handler if (onError && typeof onError === 'function') { onError(errorMessage);