Ajax onFailure: Write component URL to container
This is needed that history can push the correct detail url
This commit is contained in:
parent
e588ea2714
commit
ae68e8aec4
|
@ -420,8 +420,6 @@
|
||||||
var $el = $(el);
|
var $el = $(el);
|
||||||
if ($el.hasClass('dashboard')) {
|
if ($el.hasClass('dashboard')) {
|
||||||
return;
|
return;
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
var url = $el.data('icingaUrl');
|
var url = $el.data('icingaUrl');
|
||||||
targets[i].data('icingaUrl', url);
|
targets[i].data('icingaUrl', url);
|
||||||
|
@ -564,7 +562,7 @@
|
||||||
} else {
|
} else {
|
||||||
// Request wasn't for a container, so it's usually the body
|
// Request wasn't for a container, so it's usually the body
|
||||||
// or the full layout. Push request URL to history:
|
// 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.failure = true;
|
||||||
|
|
||||||
|
req.$target.data('icingaUrl', req.url);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Test if a manual actions comes in and autorefresh is active: Stop refreshing
|
* Test if a manual actions comes in and autorefresh is active: Stop refreshing
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue