Interpret onload ajax requests for the detail column as auto-refresh
This is a preperation for programmatically focusing the target container of a followed link for accessibility reasons. Automated focusing of the target container must not happen if the request is a auto-refreshing one. Thus onload requests are now flagged as auto-refresh.
This commit is contained in:
parent
99ba4e9a39
commit
a262d13f86
|
@ -211,10 +211,12 @@
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if ($('#col2').data('icingaUrl') !== parts[1]) {
|
if ($('#col2').data('icingaUrl') !== parts[1]) {
|
||||||
icinga.loader.loadUrl(
|
var req = icinga.loader.loadUrl(
|
||||||
parts[1],
|
parts[1],
|
||||||
$('#col2')
|
$('#col2')
|
||||||
).addToHistory = false;
|
);
|
||||||
|
req.addToHistory = false;
|
||||||
|
req.autorefresh = onload;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue