Revision 5b2f3030 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
62 | 62 |
ui.VMactionsInit = function(){ |
63 | 63 |
|
64 | 64 |
// if VM is stopped hide connect option |
65 |
$('.vms li .container .stopped').parents('.container').find('.options .connect').hide(); |
|
66 |
|
|
67 |
var vm_container = $('.vms li .container'); |
|
68 |
var vm_img = vm_container.find('.img-wrap'); |
|
69 |
|
|
65 |
$('.vms .container .stopped').parents('.container').find('.options .connect').hide(); |
|
66 |
|
|
70 | 67 |
$('.vms li .container').mouseenter( |
71 | 68 |
function (e) { |
72 | 69 |
$(this).find('.img').css('visibility','hidden'); |
... | ... | |
99 | 96 |
|
100 | 97 |
$('.vms .container .check').click(function(e){ |
101 | 98 |
e.preventDefault(); |
99 |
|
|
102 | 100 |
var checkbox = $(this).find('.custom_checkbox'); |
103 | 101 |
|
104 | 102 |
checkbox.toggleClass('checkbox-checked'); |
... | ... | |
110 | 108 |
else{ |
111 | 109 |
checkbox.html('a'); |
112 | 110 |
$(this).parents('.container').removeClass('set-bg'); |
111 |
$(this).hide(); |
|
113 | 112 |
|
114 | 113 |
} |
114 |
|
|
115 |
// in any case, hide extra options and reset positions to normal |
|
115 | 116 |
$(this).parents('.container').removeClass('set-border'); |
116 | 117 |
$(this).parents('.container').find('.img').css('visibility','visible'); |
117 | 118 |
$(this).parents('.container').find('.options').hide(); |
119 |
$(this).parents('.container').find('.visible-info em').removeAttr('style'); |
|
118 | 120 |
|
119 | 121 |
ui.cntCheckbox(); |
120 | 122 |
}) |
Also available in: Unified diff