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) {