var $pane = this;
var errhtml;
var contentType = jqxhr.getResponseHeader('Content-Type');
- if (contentType && contentType.match(/\btext\/html\b/)) {
+ if (jqxhr.readyState == 0 || jqxhr.status == 0) {
+ errhtml = "Cancelled.";
+ } else if (contentType && contentType.match(/\btext\/html\b/)) {
var $response = $(jqxhr.responseText);
var $wrapper = $('div#page-wrapper', $response);
if ($wrapper.length) {
replace(/</g, '<').
replace(/>/g, '>');
}
- $pane.html('<div><p>' +
+ $pane.html('<div class="pane-error-display"><p>' +
'<a href="#" class="btn btn-primary tab_reload">' +
'<i class="fa fa-fw fa-refresh"></i> ' +
'Reload tab</a></p><iframe style="width: 100%"></iframe></div>');