Revision 2eef02ae snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
875 875
        }
876 876
    );
877 877

  
878
    $('.btn-more').mouseenter(function(e) {
879
        $(this).find('.explain').stop(true, true).show('slow');
880
        $(this).addClass('style-1');
881
        $(this).find('.snf-arrow-down').removeClass('style-1');
882
        // $(this).siblings('.available').stop(true, true).slideDown(200);
883
    });
878 884

  
885
    $('.btn-more').click(function(e) {
886
        e.preventDefault();
887
        $(this).addClass('style-2');
888
        $(this).closest('.project').css('z-index', 2);
889
        $(this).siblings('.available').stop(true, true).slideDown('slow');
890
    })
879 891

  
892
    $('.project').mouseleave(function(e) {
893
        $(this).find('.available').stop(true, true).slideUp(200);
894
        var btn = $(this).find('.btn-more');
895
        btn.find('.explain').stop(true, true).hide('slow');
896
        $(btn).find('.snf-arrow-down').addClass('style-1');
897
        btn.removeClass('style-2');
898
        $(btn).removeClass('style-1');
899
        $(this).closest('.project').css('z-index',1);
900
    })
880 901
})
881 902

  
882 903

  

Also available in: Unified diff