Revision 7b381e90 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/gp-script.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/gp-script.js | ||
---|---|---|
1 | 1 |
$(document).ready(function(){ |
2 |
$('.vm_container').find('.img').mouseenter(function(event){ |
|
2 |
|
|
3 |
//show selection window of vm_list_v1.html |
|
4 |
$('.vm_container').find('.img').mouseenter(function(event){ |
|
3 | 5 |
event.preventDefault(); |
4 | 6 |
elem = $('.vm_container').find('.vm_options'); |
5 | 7 |
if(elem.length!==0){ |
6 |
console.log('me vrikane k tha me diksoun!'); |
|
7 | 8 |
elem.slideDown('slow'); |
8 | 9 |
elem.removeClass('invisible'); |
9 | 10 |
} |
... | ... | |
13 | 14 |
event.preventDefault(); |
14 | 15 |
if(!$(this).hasClass('invisible')) |
15 | 16 |
{ |
16 |
console.log('fainomai twra! ;)') |
|
17 | 17 |
elem.slideUp('slow'); |
18 | 18 |
elem.addClass('invisible'); |
19 | 19 |
} |
20 | 20 |
}) |
21 |
|
|
22 |
//checkbox in selection window of vm_list_v1.html |
|
23 |
$('.select').click(function(event){ |
|
24 |
event.preventDefault(); |
|
25 |
var checkbox = $(this).find('.custom_checkbox'); |
|
26 |
if(checkbox.hasClass('checkbox-unchecked')){ |
|
27 |
checkbox.html('b'); |
|
28 |
checkbox.removeClass('checkbox-unchecked'); |
|
29 |
checkbox.addClass('checkbox-checked'); |
|
30 |
} |
|
31 |
else{ |
|
32 |
checkbox.html('a'); |
|
33 |
checkbox.removeClass('checkbox-checked'); |
|
34 |
checkbox.addClass('checkbox-unchecked'); |
|
35 |
} |
|
36 |
}); |
|
21 | 37 |
|
22 | 38 |
}); |
Also available in: Unified diff