mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
ENHANCEMENT Added global ajax error handling to LeftAndMain.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92720 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
60451f7033
commit
a4ae359cac
@ -1,6 +1,15 @@
|
|||||||
(function($) {
|
(function($) {
|
||||||
|
|
||||||
|
// setup jquery.concrete
|
||||||
$.concrete.warningLevel = $.concrete.WARN_LEVEL_BESTPRACTISE;
|
$.concrete.warningLevel = $.concrete.WARN_LEVEL_BESTPRACTISE;
|
||||||
|
|
||||||
|
// global ajax error handlers
|
||||||
|
$.ajaxSetup({
|
||||||
|
error: function(xmlhttp, status, error) {
|
||||||
|
var msg = (xmlhttp.getResponseHeader('X-Status')) ? xmlhttp.getResponseHeader('X-Status') : xmlhttp.statusText;
|
||||||
|
statusMessage(msg, 'bad');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Available Custom Events:
|
* Available Custom Events:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user