Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Merge requests
!57
6561 add winbox
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
6561 add winbox
6561-add-winbox
into
master
Overview
0
Commits
7
Pipelines
0
Changes
1
Merged
6561 add winbox
Hahn Axel (hahn)
requested to merge
6561-add-winbox
into
master
Jul 25, 2023
Overview
0
Commits
7
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
059454e0
Prev
Next
Show latest version
1 file
+
19
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
059454e0
update toggleShellWindow()
· 059454e0
Hahn Axel (hahn)
authored
Jul 26, 2023
public_html/deployment/js/functions.js
+
19
−
15
View file @ 059454e0
Edit in single-file editor
Open in Web IDE
Show full file
@@ -42,43 +42,47 @@ function hideModalMessage(){
return
false
;
}
var
aWinBoxes
=
{};
/**
* shellcmd plugin ... toggle output window
* @param {string} i
dWrapper
Div id of the wrapper
* @param {object} oLink a tag in the navbar with link for toggling window
* @param {string} i
sPluginOutput
Div id of the wrapper
* @param {object} oLink
a tag in the navbar with link for toggling window
*/
function
toggleShellWindow
(
i
dWrapper
Div
,
oLink
){
if
(
aWinBoxes
[
i
dWrapper
Div
]){
aWinBoxes
[
i
dWrapper
Div
].
close
();
function
toggleShellWindow
(
i
sPluginOutput
Div
,
oLink
){
if
(
aWinBoxes
[
i
sPluginOutput
Div
]){
aWinBoxes
[
i
sPluginOutput
Div
].
close
();
}
else
{
var
oWrapper
=
document
.
getElementById
(
i
dWrapper
Div
);
aWinBoxes
[
i
dWrapper
Div
]
=
WinBox
({
var
oWrapper
=
document
.
getElementById
(
i
sPluginOutput
Div
);
aWinBoxes
[
i
sPluginOutput
Div
]
=
WinBox
({
title
:
oLink
.
innerText
,
id
:
'
winbox-
'
+
i
dWrapper
Div
,
id
:
'
winbox-
'
+
i
sPluginOutput
Div
,
border
:
5
,
background
:
"
#628
"
,
class
:
[
"
no-min
"
,
"
no-max
"
,
/* "no-full", "no-resize", "no-move"*/
"
ciwinbox
"
],
// position
:
// position
+ size
x
:
"
center
"
,
y
:
"
center
"
,
width
:
10
,
height
:
10
,
// width: oWrapper.clientWidth+'px',
// viewport
top
:
70
,
right
:
20
,
bottom
:
20
,
left
:
20
,
// take content from existing div
mount
:
oWrapper
,
onclose
:
function
(){
delete
aWinBoxes
[
i
dWrapper
Div
];
delete
aWinBoxes
[
i
sPluginOutput
Div
];
$
(
oLink
).
parent
().
removeClass
(
'
active
'
);
}
});
$
(
oLink
).
parent
().
addClass
(
'
active
'
);
window
.
setTimeout
(
"
aWinBoxes['
"
+
i
dWrapper
Div
+
"
'].resize(
"
+
(
oWrapper
.
clientWidth
+
25
)
+
"
,
"
+
(
oWrapper
.
clientHeight
+
150
)
+
"
).move('center', 'center')
"
,
20
0
);
window
.
setTimeout
(
"
aWinBoxes['
"
+
i
sPluginOutput
Div
+
"
'].resize(
"
+
(
oWrapper
.
clientWidth
+
25
)
+
"
,
"
+
(
oWrapper
.
clientHeight
+
150
)
+
"
).move('center', 'center')
"
,
1
0
);
}
// $('#'+idWrapperDiv).slideToggle(100);
// $(oLink).parent().toggleClass('active');
}
// ----------------------------------------------------------------------
Loading