Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / common_ab.js @ 5e62e9c1

History | View | Annotate | Download (1.7 kB)

1
$(document).ready(function(){
2

    
3
    //show selection window of vm_list_v1.html
4

    
5
    
6

    
7

    
8

    
9

    
10

    
11
/*
12
    var vm_options_win;
13
    $('li .container .img').mouseenter(function(event){
14
        event.preventDefault();
15
        var container = $(this).parents('.container');
16
        container.css('border-color','grey');
17
        vm_options_win = $(this).parents('.vm_container').find('.vm_options');
18
        if(vm_options_win.length!==0){
19
            vm_options_win.removeClass('invisible');
20
            vm_options_win.slideDown('slow');
21
        }
22

23
    }).mouseleave(function(event){
24
        event.preventDefault();
25
        event.stopPropagation();
26
        if(!vm_options_win.hasClass('invisible'))
27
        {
28
            vm_options_win.hide();
29
            vm_options_win.addClass('invisible');
30
        }
31
    })
32

33
    $('.options .select').click(function(event){
34
        event.preventDefault();
35
        var checkbox = $(this).find('.custom_checkbox');
36

37
        if(checkbox.hasClass('checkbox-unchecked')){
38
            checkbox.html('b');
39
            checkbox.addClass('checkbox-checked'); 
40
            checkbox.removeClass('checkbox-unchecked'); 
41
        }
42
        else{
43
            checkbox.html('a'); 
44
            checkbox.removeClass('checkbox-checked');
45
            checkbox.addClass('checkbox-unchecked');
46

47
        }
48
        var cntCheckbox = $('.options .checkbox-checked').length;
49
        if (cntCheckbox == 0 ){
50
             $('.header .main-actions').hide();   
51
        } else {
52
            $('.header .main-actions').show();
53
            if (cntCheckbox > 1) {
54
                $('.header .main-actions .single').hide();
55
            } else {
56
                $('.header .main-actions .sigle').show();
57
            }
58
        }
59
    });
60
*/
61
   
62
});