From c0044a14ccfc86a3259f8f129c93cf3c15c8deac Mon Sep 17 00:00:00 2001 From: qi_liang Date: Tue, 28 May 2019 11:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dajafileupload.js=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BD=BF=E7=94=A8jq1.4=E4=BB=A5=E4=B8=8A=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/code/js/ajaxfileupload.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/webapp/resources/code/js/ajaxfileupload.js b/src/main/webapp/resources/code/js/ajaxfileupload.js index 670e8a1..ab95b02 100644 --- a/src/main/webapp/resources/code/js/ajaxfileupload.js +++ b/src/main/webapp/resources/code/js/ajaxfileupload.js @@ -1,6 +1,17 @@ jQuery.extend({ + handleError: function (s, xhr, status, e) { + // If a local callback was specified, fire it + if (s.error) { + s.error.call(s.context || s, xhr, status, e); + } + + // Fire the global callback + if (s.global) { + (s.context ? jQuery(s.context) : jQuery.event).trigger("ajaxError", [xhr, s, e]); + } + }, createUploadIframe: function(id, uri) {