Ajax onFailure: Write component URL to container

This is needed that history can push the correct detail url
This commit is contained in:
Marius Hein 2015-02-16 11:35:44 +01:00
parent e588ea2714
commit ae68e8aec4
1 changed files with 3 additions and 3 deletions

View File

@ -420,8 +420,6 @@
var $el = $(el);
if ($el.hasClass('dashboard')) {
return;
} else {
}
var url = $el.data('icingaUrl');
targets[i].data('icingaUrl', url);
@ -564,7 +562,7 @@
} else {
// Request wasn't for a container, so it's usually the body
// or the full layout. Push request URL to history:
this.icinga.history.pushUrl(req.url);
this.icinga.history.pushCurrentState();
}
}
@ -594,6 +592,8 @@
req.failure = true;
req.$target.data('icingaUrl', req.url);
/*
* Test if a manual actions comes in and autorefresh is active: Stop refreshing
*/