[Perl] DAQ system for the FAPG.
fix preserve position on probe navigation
- distinguish path-based probe selection from fragment navigation - scroll to graphs only for explicit probe fragments - keep direct probe pages positioned at the document top
roles/dashboard/public/js/dashboard.js
@@ -960,13 +960,17 @@
960
960
}
961
961
});
962
962
963
Removed:
const initialProbe = probeFromLocation();
963
Added:
const initialHashProbe = probeFromHash();
964
Added:
const initialProbe = probeFromPath() || initialHashProbe;
964
965
965
966
updateRawDownloadLinks();
966
967
967
968
if (initialProbe) {
968
969
activateTab(initialProbe);
969
Removed:
document.getElementById(`probe-${initialProbe}`).scrollIntoView();
970
Added:
971
Added:
if (initialHashProbe) {
972
Added:
document.getElementById(`probe-${initialHashProbe}`).scrollIntoView();
973
Added:
}
970
974
} else if (activeProbe()) {
971
975
displayedProbes().forEach(loadProbe);
972
976
}