root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / gp-script.js @ 7b381e90
History | View | Annotate | Download (1.1 kB)
1 |
$(document).ready(function(){ |
---|---|
2 |
|
3 |
//show selection window of vm_list_v1.html
|
4 |
$('.vm_container').find('.img').mouseenter(function(event){ |
5 |
event.preventDefault(); |
6 |
elem = $('.vm_container').find('.vm_options'); |
7 |
if(elem.length!==0){ |
8 |
elem.slideDown('slow');
|
9 |
elem.removeClass('invisible');
|
10 |
} |
11 |
|
12 |
}); |
13 |
$('.vm_options').mouseleave(function(event){ |
14 |
event.preventDefault(); |
15 |
if(!$(this).hasClass('invisible')) |
16 |
{ |
17 |
elem.slideUp('slow');
|
18 |
elem.addClass('invisible');
|
19 |
} |
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 |
}); |
37 |
|
38 |
}); |