aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/public/js/controllers/signupController.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-03-20 12:43:33 +0100
committerDennis Eriksen <dennis.se@gmail.com>2013-03-20 12:43:33 +0100
commit266767e6b31d4799b218a7dc9ffd0d6f2eca92a8 (patch)
treee3e68b3acdfb276cadcc23d0028a6c1dd3bc8f21 /public/js/controllers/signupController.js
parentEdited "Sign in" button - for fun (diff)
downloadDivid-266767e6b31d4799b218a7dc9ffd0d6f2eca92a8.tar.gz
login screen
Diffstat (limited to 'public/js/controllers/signupController.js')
-rw-r--r--public/js/controllers/signupController.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/js/controllers/signupController.js b/public/js/controllers/signupController.js
new file mode 100644
index 0000000..97d20e6
--- /dev/null
+++ b/public/js/controllers/signupController.js
@@ -0,0 +1,9 @@
+
+function SignupController()
+{
+// redirect to homepage when cancel button is clicked //
+ $('#account-form-btn1').click(function(){ window.location.href = '/';});
+
+// redirect to homepage on new account creation, add short delay so user can read alert window //
+ $('.modal-alert #ok').click(function(){ setTimeout(function(){window.location.href = '/';}, 300)});
+} \ No newline at end of file