Skip to content

Commit

Permalink
fix scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Jun 21, 2024
1 parent 6b142ae commit 369ebab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lam/templates/lib/500_lam.js
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,7 @@ window.lam.treeview.createNodeEnterAttributesStep = function (event, tokenName,
const tree = jQuery.jstree.reference("#ldap_tree");
tree.refresh_node(parentDn);
tree.open_node(parentDn);
document.getElementById("ldap_actionarea").scrollTop = 0;
window.scrollTo(0, 0);
});
}

Expand Down Expand Up @@ -2497,7 +2497,7 @@ window.lam.treeview.getNodeContent = function (tokenName, tokenValue, dn, messag
if (messages) {
document.getElementById('ldap_actionarea_messages').innerHTML = messages;
}
document.getElementById("ldap_actionarea").scrollTop = 0;
window.scrollTo(0, 0);
window.lam.html.activateLightboxes();
window.lam.treeview.addFileInputListeners();
window.lam.treeview.activateSortableInputs();
Expand Down Expand Up @@ -2872,7 +2872,7 @@ window.lam.treeview.search = function (tokenName, tokenValue, dn) {
const jsonData = await response.json();
window.lam.treeview.checkSession(jsonData);
document.getElementById('ldap_actionarea').innerHTML = jsonData.content;
document.getElementById("ldap_actionarea").scrollTop = 0;
window.scrollTo(0, 0);
});
}

Expand Down Expand Up @@ -2903,7 +2903,7 @@ window.lam.treeview.searchResults = function (event, tokenName, tokenValue, dn)
const jsonData = await response.json();
window.lam.treeview.checkSession(jsonData);
document.getElementById('ldap_actionarea').innerHTML = jsonData.content;
document.getElementById("ldap_actionarea").scrollTop = 0;
window.scrollTo(0, 0);
});
}

Expand Down

0 comments on commit 369ebab

Please sign in to comment.