Revision a18bd0ed snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
47 47

  
48 48
    }
49 49
}
50

  
51
ui.setCheckedVMBgColor = function(){
52
    console.log('test');
53
    if ($('.more_checkbox span').length >0) {
54
        $('.more_checkbox .checkbox-checked').parents('.container').addClass('set-bg');
55
    } else {
56
        $('.more_checkbox').parents('.container').removeClass('set-bg');    
57
    }
58

  
59
}
60

  
61

  
50 62
ui.VMactionsInit = function(){
51 63

  
52 64
	// if VM is stopped hide connect option 
......
88 100
        } else {
89 101
        	 checkbox.parents('.container').find('.more_checkbox').html('');
90 102
        }
103
        ui.setCheckedVMBgColor();
91 104
        ui.cntCheckbox();
92 105
    })
93 106
    $('.more_checkbox').on('click', function(e){
......
113 126
        if (!(checkbox.hasClass('checkbox-checked'))){
114 127
         	self.html('');
115 128
        }
129
        ui.setCheckedVMBgColor();
116 130
        ui.cntCheckbox();
117 131
    })
118 132
}
......
135 149
		$(this).addClass('selected');
136 150
	})
137 151

  
138
	$('.select-flavor dl span').click(function(e){
139
		console.log('test');
140
		$(this).parents('dl').find('span').removeClass('current');
141
		$(this).addClass('current');
142
	})
143

  
152
	
144 153
	if ($('.overlay').length >0 ){
145 154
		$('body').addClass('with-overlay');
146 155
	}

Also available in: Unified diff