summaryrefslogtreecommitdiff
path: root/src/static
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2012-12-03 11:41:51 +0000
committerJohn McLear <john@mclear.co.uk>2012-12-03 11:41:51 +0000
commitb0463bd7d5c64b25cff95718e9b529320a10586e (patch)
tree5bfc7f65202ba41a49fd324b3c648ddd24ce7df1 /src/static
parentbef25b40f8421db91c5d08cb36d19d1b0a46d8e3 (diff)
downloadetherpad-lite-b0463bd7d5c64b25cff95718e9b529320a10586e.zip
whoopsi
Diffstat (limited to 'src/static')
-rw-r--r--src/static/js/pad.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js
index aef06eff..54d44278 100644
--- a/src/static/js/pad.js
+++ b/src/static/js/pad.js
@@ -298,14 +298,12 @@ function handshake()
//the access was not granted, give the user a message
if(!receivedClientVars && obj.accessStatus)
{
- $('.passForm').submit(function(){
- require(module.id).savePassword();
- });
+ $('.passForm').submit(pad.savePassword);
if(obj.accessStatus == "deny")
{
$('#loading').hide();
- $("#permissionDenied").show());
+ $("#permissionDenied").show();
}
else if(obj.accessStatus == "needPassword")
{
@@ -318,9 +316,7 @@ function handshake()
$('#loading').hide();
$('#wrongPassword').show();
$("#passwordinput").focus();
-
}
-
}
//if we haven't recieved the clientVars yet, then this message should it be