mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
makeAjaxRequest(): delegate error message responsibility to the handler if any.
This commit is contained in:
parent
2c9d244023
commit
1ec4d71db0
@ -130,7 +130,7 @@ ImageJob.prototype = {
|
||||
self.image.src = url;
|
||||
},
|
||||
error: function(request) {
|
||||
self.errorMsg = "Image load aborted - XHR error";
|
||||
self.errorMsg = "Image load aborted - XHR error: Ajax returned " + request.status;
|
||||
self.finish(false);
|
||||
}
|
||||
});
|
||||
|
@ -2364,10 +2364,10 @@ function OpenSeadragon( options ){
|
||||
protocol !== "https:" )) {
|
||||
onSuccess( request );
|
||||
} else {
|
||||
$.console.error( "AJAX request returned %d: %s", request.status, url );
|
||||
|
||||
if ( $.isFunction( onError ) ) {
|
||||
onError( request );
|
||||
} else {
|
||||
$.console.error( "AJAX request returned %d: %s", request.status, url );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user