Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
eb569883
Commit
eb569883
authored
Mar 11, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correctly remove package from status list
parent
0abad2f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
debomatic-webui/public/javascripts/page_generic.js
debomatic-webui/public/javascripts/page_generic.js
+13
-7
No files found.
debomatic-webui/public/javascripts/page_generic.js
View file @
eb569883
...
...
@@ -61,22 +61,28 @@ function Page_Generic()
status
:
function
(
status_package
)
{
var
delay
=
{}
delay
.
remove
=
10000
// 10 seconds
delay
.
fadeOut
=
2500
var
li
=
$
(
"
#status li[id='status-
"
+
status_package
.
distribution
+
"
-
"
+
status_package
.
package
+
"
']
"
)
if
(
li
.
length
>
0
&&
status_package
.
status
!=
'
building
'
)
{
li
.
html
(
$
(
__get_status_html
(
status_package
)).
children
())
// chain fadeOut and delete
// This is a chain to have a fadeOut and correctly
// delete package from list.
// The first timemout fades out the package.
setTimeout
(
function
()
{
li
.
children
().
fadeOut
(
config
.
status
.
delay
.
fadeOut
)
// Then resize packages list.
setTimeout
(
function
()
{
li
.
animate
({
width
:
'
toggle
'
})
li
.
attr
(
'
id
'
,
''
)
li
.
animate
({
width
:
'
toggle
'
})
},
config
.
status
.
delay
.
fadeOut
)
// Finally remove package html
// and show idle status if necessary.
setTimeout
(
function
()
{
li
.
remove
()
if
(
$
(
'
#status li
'
).
length
==
0
)
$
(
'
#status .idle
'
).
show
()
},
config
.
status
.
delay
.
remove
)
},
config
.
status
.
delay
.
remove
)
}
else
if
(
status_package
.
status
==
'
building
'
)
{
...
...
@@ -89,13 +95,13 @@ function Page_Generic()
set
:
function
(
data_status
)
{
$
(
"
#status ul
"
).
html
(
''
)
if
(
data_status
.
packages
.
length
>
0
)
{
$
(
'
#status .idle
'
).
hide
()
data_status
.
packages
.
forEach
(
function
(
p
){
status
.
append
(
p
)
})
}
},
append
:
function
(
status_package
)
{
$
(
'
#status .idle
'
).
hide
()
$
(
"
#status ul
"
).
html
(
$
(
"
#status ul
"
).
html
()
+
"
"
+
__get_status_html
(
status_package
))
}
}
...
...
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