mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
parent
a1ac44362f
commit
73ed141a5e
@ -76,14 +76,19 @@ define([
|
|||||||
href = URI(href);
|
href = URI(href);
|
||||||
}
|
}
|
||||||
document.body.pending = $.ajax({
|
document.body.pending = $.ajax({
|
||||||
success: function(domNodes) {
|
|
||||||
$('body').empty().append(jQuery.parseHTML(domNodes));
|
|
||||||
ignoreHistoryChanges = true;
|
|
||||||
History.pushState({}, document.title, href.href());
|
|
||||||
ignoreHistoryChanges = false;
|
|
||||||
components.load();
|
|
||||||
},
|
|
||||||
url: href.href()
|
url: href.href()
|
||||||
|
}).done(function(domNodes) {
|
||||||
|
$('body').empty().append(jQuery.parseHTML(domNodes));
|
||||||
|
ignoreHistoryChanges = true;
|
||||||
|
History.pushState({}, document.title, href.href());
|
||||||
|
ignoreHistoryChanges = false;
|
||||||
|
components.load();
|
||||||
|
}).error(function(xhr, textStatus, errorThrown) {
|
||||||
|
if (xhr.responseText) {
|
||||||
|
$('body').empty().append(jQuery.parseHTML(xhr.responseText));
|
||||||
|
} else if (textStatus !== 'abort') {
|
||||||
|
logging.emergency('Could not load URL', xhr.href, textStatus, errorThrown);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user