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:
Eric Lippmann 2016-01-13 11:26:43 +01:00
parent 99ba4e9a39
commit a262d13f86
1 changed files with 4 additions and 2 deletions

View File

@ -211,10 +211,12 @@
);
} else {
if ($('#col2').data('icingaUrl') !== parts[1]) {
icinga.loader.loadUrl(
var req = icinga.loader.loadUrl(
parts[1],
$('#col2')
).addToHistory = false;
);
req.addToHistory = false;
req.autorefresh = onload;
}
}