Revision 6e3d008c snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
27 | 27 |
var all = $('.checkbox-checked').length; |
28 | 28 |
var running = $('.checkbox-checked').parents('.container').find('.running').length; |
29 | 29 |
var stopped = $('.checkbox-checked').parents('.container').find('.stopped').length; |
30 |
$('.header .main-actions li a').removeClass('active'); |
|
30 |
$('.header .main-actions li:not(.permanent) a').removeClass('active');
|
|
31 | 31 |
if ( (running*stopped) > 0 ){ |
32 | 32 |
$('.header .main-actions li.both a').addClass('active'); |
33 | 33 |
$('.header .main-actions li.single a').removeClass('active'); |
... | ... | |
250 | 250 |
$('.has-overlay a').click(function(e){ |
251 | 251 |
e.preventDefault(); |
252 | 252 |
if ($(this).hasClass('active')){ |
253 |
$('.content').append('<div class="overlay-modal overlay"><a href="vm_list_v1.html" class="close" title="cancel vm creation">close</a></div>');
|
|
253 |
$('.content').append('<div class="overlay-modal overlay"><a href="" class="close" title="cancel vm creation">close</a></div>'); |
|
254 | 254 |
$($(this).parents('.has-overlay').data('overlay-id')).fadeIn('slow'); |
255 | 255 |
} |
256 | 256 |
}) |
Also available in: Unified diff