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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Commits
059454e0
Commit
059454e0
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update toggleShellWindow()
parent
c31ca3b1
No related branches found
No related tags found
1 merge request
!57
6561 add winbox
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public_html/deployment/js/functions.js
+19
-15
19 additions, 15 deletions
public_html/deployment/js/functions.js
with
19 additions
and
15 deletions
public_html/deployment/js/functions.js
+
19
−
15
View file @
059454e0
...
@@ -42,43 +42,47 @@ function hideModalMessage(){
...
@@ -42,43 +42,47 @@ function hideModalMessage(){
return
false
;
return
false
;
}
}
var
aWinBoxes
=
{};
var
aWinBoxes
=
{};
/**
/**
* shellcmd plugin ... toggle output window
* shellcmd plugin ... toggle output window
* @param {string} i
dWrapper
Div id of the wrapper
* @param {string} i
sPluginOutput
Div id of the wrapper
* @param {object} oLink a tag in the navbar with link for toggling window
* @param {object} oLink
a tag in the navbar with link for toggling window
*/
*/
function
toggleShellWindow
(
i
dWrapper
Div
,
oLink
){
function
toggleShellWindow
(
i
sPluginOutput
Div
,
oLink
){
if
(
aWinBoxes
[
i
dWrapper
Div
]){
if
(
aWinBoxes
[
i
sPluginOutput
Div
]){
aWinBoxes
[
i
dWrapper
Div
].
close
();
aWinBoxes
[
i
sPluginOutput
Div
].
close
();
}
else
{
}
else
{
var
oWrapper
=
document
.
getElementById
(
i
dWrapper
Div
);
var
oWrapper
=
document
.
getElementById
(
i
sPluginOutput
Div
);
aWinBoxes
[
i
dWrapper
Div
]
=
WinBox
({
aWinBoxes
[
i
sPluginOutput
Div
]
=
WinBox
({
title
:
oLink
.
innerText
,
title
:
oLink
.
innerText
,
id
:
'
winbox-
'
+
i
dWrapper
Div
,
id
:
'
winbox-
'
+
i
sPluginOutput
Div
,
border
:
5
,
border
:
5
,
background
:
"
#628
"
,
background
:
"
#628
"
,
class
:
[
"
no-min
"
,
"
no-max
"
,
/* "no-full", "no-resize", "no-move"*/
"
ciwinbox
"
],
class
:
[
"
no-min
"
,
"
no-max
"
,
/* "no-full", "no-resize", "no-move"*/
"
ciwinbox
"
],
// position
:
// position
+ size
x
:
"
center
"
,
x
:
"
center
"
,
y
:
"
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
,
mount
:
oWrapper
,
onclose
:
function
(){
onclose
:
function
(){
delete
aWinBoxes
[
i
dWrapper
Div
];
delete
aWinBoxes
[
i
sPluginOutput
Div
];
$
(
oLink
).
parent
().
removeClass
(
'
active
'
);
$
(
oLink
).
parent
().
removeClass
(
'
active
'
);
}
}
});
});
$
(
oLink
).
parent
().
addClass
(
'
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');
}
}
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment