integration/js/common.js
brancheditorjs
changeset 16 7536b92a7775
parent 15 56937307d7f4
child 24 1fbf7d835dc2
--- a/integration/js/common.js	Thu Oct 25 13:31:02 2012 +0200
+++ b/integration/js/common.js	Thu Oct 25 14:51:17 2012 +0200
@@ -3,8 +3,9 @@
     $(".open-popin").click(function(){
         var target = $(this).attr("href");
         if($(target).is(':visible')){
-            $(target).hide();
+            $(".popin").hide();
         }else{
+            $(".popin").hide();
             $(target).show();
         }
         return false;
@@ -18,4 +19,7 @@
         $(".user").hide();
         $(".user.signup").show();
     });
+    $(".login-form, .signup-form").submit(function() {
+        $(".user").hide();
+    });
 });
\ No newline at end of file