Skip to content

Commit b2c18a0

Browse files
committed
using brackets as belt
1 parent 752a41f commit b2c18a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roles/ui/files/FWO.UI/wwwroot/js/scrollIntoView.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
function scrollIntoRSBView(htmlObjId) {
33
let obj = document.getElementById(htmlObjId)?.parentElement?.parentElement; // gets the tr element containing the obj
44
if (!obj)
5+
{
56
return false;
7+
}
68
obj.scrollIntoView({ behavior: "smooth", block: "center" });
79
// Expand row
810
let toggleLink = obj.previousElementSibling.querySelector("a");

0 commit comments

Comments
 (0)