blob: 4ef4c568e74d9946d16188fdc2f90afd3b7f29a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/// <reference lib="dom" />
function shouldSkipRedirection() {
return (
window.inPopUp ||
parent.frames.length ||
stateObj.reload === 'other' ||
stateObj.in_test !== '0' ||
parent.location.href === location.href
);
}
$.ready.then(() => {
document.querySelectorAll(
'.toplinks .toplink_popup'
).forEach((element) => {
element.addEventListener('click', (e) => {
window.name = 'detail';
window
.open(
`${element.getAttribute('rel')}`,
'_blank', //`sqledit:${stateObj.server}`,
'toolbar=no,width=750,height=520,resizable=yes,scrollbars=yes'
)
.focus();
});
});
document.querySelector(
'#toplink_logout'
).addEventListener('click', (e) => {
e.preventDefault();
if (confirm(stateObj.strconfdropcred)) {
window.location.href = e.target.getAttribute('rel');
}
});
return;
});
|