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

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common_ab.js
1 1
$(document).ready(function(){
2 2

  
3 3
    //show selection window of vm_list_v1.html
4

  
5
    
6

  
7

  
8

  
9

  
10

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

  
13 23
    }).mouseleave(function(event){
14 24
        event.preventDefault();
25
        event.stopPropagation();
15 26
        if(!vm_options_win.hasClass('invisible'))
16 27
        {
17
            vm_options_win.slideUp('slow');
28
            vm_options_win.hide();
18 29
            vm_options_win.addClass('invisible');
19 30
        }
20 31
    })
21 32

  
22
    //checkbox in selection window of vm_list_v1.html
23
    $('.vm_options .select').click(function(event){
33
    $('.options .select').click(function(event){
24 34
        event.preventDefault();
25 35
        var checkbox = $(this).find('.custom_checkbox');
26 36

  
......
35 45
            checkbox.addClass('checkbox-unchecked');
36 46

  
37 47
        }
38
        var cntCheckbox = $('.vm_options .checkbox-checked').length;
48
        var cntCheckbox = $('.options .checkbox-checked').length;
39 49
        if (cntCheckbox == 0 ){
40 50
             $('.header .main-actions').hide();   
41 51
        } else {
......
47 57
            }
48 58
        }
49 59
    });
60
*/
50 61
   
51 62
});

Also available in: Unified diff