Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/toplinks_behavior.js')
-rw-r--r--assets/js/toplinks_behavior.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/toplinks_behavior.js b/assets/js/toplinks_behavior.js
index 58dbd149..596f23eb 100644
--- a/assets/js/toplinks_behavior.js
+++ b/assets/js/toplinks_behavior.js
@@ -24,6 +24,7 @@ function addBehaviorToTopLinks(amIDetailFrame) {
),
].forEach((element) => {
element.addEventListener('click', (e) => {
+ window.name = 'detail';
window
.open(
`${element.getAttribute('rel')}`,
@@ -37,7 +38,7 @@ function addBehaviorToTopLinks(amIDetailFrame) {
toplink_logout.addEventListener('click', (e) => {
e.preventDefault();
if (confirm(stateObj.strconfdropcred)) {
- window.location.href = e.target.href;
+ window.location.href = e.target.getAttribute('rel');
}
});