Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Leymonerie
slapos.toolbox
Commits
0b55aeef
Commit
0b55aeef
authored
Mar 28, 2014
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slaprunner Editor: Fix closing tab issues
parent
7e0537d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
slapos/runner/static/css/editor.css
slapos/runner/static/css/editor.css
+1
-0
slapos/runner/static/js/scripts/softwareFolder.js
slapos/runner/static/js/scripts/softwareFolder.js
+6
-5
No files found.
slapos/runner/static/css/editor.css
View file @
0b55aeef
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
height
:
30px
;
height
:
30px
;
color
:
#737373
;
color
:
#737373
;
border-bottom
:
4px
solid
#7FAED3
;
border-bottom
:
4px
solid
#7FAED3
;
min-width
:
936px
;
}
}
.box_header
ul
{
float
:
left
;
padding-top
:
2px
;
text-shadow
:
0px
1px
#F1F1F1
;}
.box_header
ul
{
float
:
left
;
padding-top
:
2px
;
text-shadow
:
0px
1px
#F1F1F1
;}
.box_header
li
{
float
:
left
;
border
:
1px
solid
#AAB8C2
;
padding
:
1px
5px
1px
0
;
margin-left
:
5px
;
text-indent
:
5px
;}
.box_header
li
{
float
:
left
;
border
:
1px
solid
#AAB8C2
;
padding
:
1px
5px
1px
0
;
margin-left
:
5px
;
text-indent
:
5px
;}
...
...
slapos/runner/static/js/scripts/softwareFolder.js
View file @
0b55aeef
...
@@ -236,7 +236,8 @@ $(document).ready(function () {
...
@@ -236,7 +236,8 @@ $(document).ready(function () {
/*Close Selected Tab*/
/*Close Selected Tab*/
$
(
"
#tabControl div.item:last span.bt_close
"
).
click
(
function
()
{
$
(
"
#tabControl div.item:last span.bt_close
"
).
click
(
function
()
{
var
$tab
=
$
(
this
).
parent
(),
position
=
0
;
var
$tab
=
$
(
this
).
parent
(),
position
=
0
,
active
=
$tab
.
hasClass
(
'
active
'
);
var
rel
=
$tab
.
attr
(
'
rel
'
);
var
rel
=
$tab
.
attr
(
'
rel
'
);
if
(
editorlist
[
rel
].
changed
)
{
if
(
editorlist
[
rel
].
changed
)
{
if
(
!
window
.
confirm
(
"
You have unsaved changes. Your changes will be lost if you don't save them
"
)){
if
(
!
window
.
confirm
(
"
You have unsaved changes. Your changes will be lost if you don't save them
"
)){
...
@@ -247,14 +248,14 @@ $(document).ready(function () {
...
@@ -247,14 +248,14 @@ $(document).ready(function () {
}
}
}
}
//Remove tab
//Remove tab
if
(
$tab
.
hasClass
(
'
active
'
)
&&
$
(
"
#tabControl div.item
"
).
length
>
0
)
{
position
=
(
$tab
.
index
()
===
0
)
?
1
:
$tab
.
index
();
position
=
(
$tab
.
index
()
==
0
)
?
1
:
$tab
.
index
();
$
(
"
#tabControl div.item:nth-child(
"
+
position
+
"
)
"
).
click
();
}
editorlist
[
rel
].
editor
.
destroy
();
editorlist
[
rel
].
editor
.
destroy
();
delete
editorlist
[
rel
];
delete
editorlist
[
rel
];
$tab
.
remove
();
$tab
.
remove
();
$
(
"
#tabContent pre[rel='
"
+
rel
+
"
']
"
).
remove
();
$
(
"
#tabContent pre[rel='
"
+
rel
+
"
']
"
).
remove
();
if
(
active
&&
$
(
"
#tabControl div.item
"
).
length
>
0
)
{
$
(
"
#tabControl div.item:nth-child(
"
+
position
+
"
)
"
).
click
();
}
resizeTabItems
();
resizeTabItems
();
saveTabList
();
saveTabList
();
return
false
;
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment