integration/js/common.js
changeset 19 43ac4bd80e71
parent 16 7536b92a7775
child 24 1fbf7d835dc2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/integration/js/common.js	Thu Oct 25 16:41:19 2012 +0200
@@ -0,0 +1,25 @@
+$(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();
+    });
+});
\ No newline at end of file