Revision c0206109 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
727 | 727 |
$('.remove .ok').click(function(e) { |
728 | 728 |
e.preventDefault(); |
729 | 729 |
$('a.close-reveal-modal').trigger('click'); |
730 |
var connection_img = $('.connections').find('.last'); |
|
731 |
connection_img.addClass('open', 0); |
|
732 |
connection_img.removeClass('last'); |
|
733 |
var img = connection_img.closest('.item').find('.img-wrap .snf-font'); |
|
734 |
img.addClass('reboot-progress'); |
|
735 |
setTimeout(function() { |
|
736 |
var connections_list = connection_img.closest('.connections').children('li:not(".hidden")'); |
|
737 |
if(connections_list.length>1) { |
|
738 |
connection_img.closest('li').slideUp(function(){ |
|
739 |
connection_img.closest('li').addClass('hidden'); |
|
740 |
if(connections_list.find('.pending').length == 0) { |
|
741 |
img.removeClass('reboot-progress'); |
|
742 |
} |
|
743 |
}); |
|
744 |
} |
|
745 |
else { |
|
746 |
connection_img.closest('.item').slideUp(function(){ |
|
747 |
img.closest('li').addClass('hidden'); |
|
748 |
img.removeClass('reboot-progress'); |
|
749 |
img.removeClass('reboot-progress'); |
|
750 |
}); |
|
751 |
} |
|
752 |
connection_img.removeClass('pending'); |
|
753 |
}, 3000) |
|
730 |
|
|
754 | 731 |
}); |
755 | 732 |
// end of connected details js |
756 | 733 |
|
Also available in: Unified diff