integration/js/common.js
author Anthony Ly <anthonyly.com@gmail.com>
Mon, 29 Oct 2012 17:22:55 +0100
changeset 24 1fbf7d835dc2
parent 16 7536b92a7775
child 91 a94f5c62e4d7
permissions -rw-r--r--
- update segment and bg video list - profil/home page

$(function(){

    $(".open-popin").click(function(){
        var target = $(this).attr("href");
        if($(target).is(':visible')){
            $(".popin").hide();
        }else{
            $(".popin").hide();
            $(target).show();
        }
        return false;
    });
    
    $(".change-account").click(function() {
        $(".user").hide();
        $(".user.login").show();
    });
    $(".signup-button").click(function() {
        $(".user").hide();
        $(".user.signup").show();
    });
    $(".login-form, .signup-form").submit(function() {
        $(".user").hide();
    });

});