Revision ce385b85 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
25 | 25 |
|
26 | 26 |
ui.cntCheckbox = function(){ |
27 | 27 |
var all = $('.checkbox-checked').length; |
28 |
var running = $('.checkbox-checked').parents('.container').find('.img.running').length;
|
|
29 |
var stopped = $('.checkbox-checked').parents('.container').find('.img.stopped').length;
|
|
28 |
var running = $('.checkbox-checked').parents('.container').find('.running').length; |
|
29 |
var stopped = $('.checkbox-checked').parents('.container').find('.stopped').length; |
|
30 | 30 |
$('.header .main-actions li a').removeClass('active'); |
31 | 31 |
if ( (running*stopped) > 0 ){ |
32 | 32 |
$('.header .main-actions li.both a').addClass('active'); |
Also available in: Unified diff