Commit 927ca682 authored by Leo Iannacone's avatar Leo Iannacone

reset id on event received and add more delay to remove html

parent eb569883
...@@ -65,7 +65,9 @@ function Page_Generic() ...@@ -65,7 +65,9 @@ function Page_Generic()
if (li.length > 0 if (li.length > 0
&& status_package.status != 'building') && status_package.status != 'building')
{ {
// Update color and icon
li.html($(__get_status_html(status_package)).children()) li.html($(__get_status_html(status_package)).children())
li.attr('id', '')
// This is a chain to have a fadeOut and correctly // This is a chain to have a fadeOut and correctly
// delete package from list. // delete package from list.
// The first timemout fades out the package. // The first timemout fades out the package.
...@@ -73,7 +75,6 @@ function Page_Generic() ...@@ -73,7 +75,6 @@ function Page_Generic()
li.children().fadeOut(config.status.delay.fadeOut) li.children().fadeOut(config.status.delay.fadeOut)
// Then resize packages list. // Then resize packages list.
setTimeout(function() { setTimeout(function() {
li.attr('id', '')
li.animate({width: 'toggle'}) li.animate({width: 'toggle'})
}, config.status.delay.fadeOut) }, config.status.delay.fadeOut)
// Finally remove package html // Finally remove package html
...@@ -82,7 +83,7 @@ function Page_Generic() ...@@ -82,7 +83,7 @@ function Page_Generic()
li.remove() li.remove()
if ($('#status li').length == 0) if ($('#status li').length == 0)
$('#status .idle').show() $('#status .idle').show()
}, config.status.delay.remove) }, config.status.delay.remove + 2000) // more delay on remove html
}, config.status.delay.remove) }, config.status.delay.remove)
} }
else if (status_package.status == 'building') { else if (status_package.status == 'building') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment