diff --git a/src/locales/en.ini b/src/locales/en.ini index e542594da..225b16cf3 100644 --- a/src/locales/en.ini +++ b/src/locales/en.ini @@ -21,6 +21,9 @@ pad.toolbar.showusers.title = Show the users on this pad pad.colorpicker.save = Save pad.colorpicker.cancel = Cancel pad.loading = Loading... +pad.passwordRequired = You need a password to access this pad +pad.permissionDenied = You do not have permission to access this pad +pad.wrongPassword = Your password was wrong pad.settings.padSettings = Pad Settings pad.settings.myView = My View pad.settings.stickychat = Chat always on screen diff --git a/src/static/js/pad.js b/src/static/js/pad.js index bfe8bf8c1..aef06eff9 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -299,9 +299,7 @@ function handshake() if(!receivedClientVars && obj.accessStatus) { $('.passForm').submit(function(){ - // THIS BIT DOESNT WORK - alert("I AM BROKEN"); - padutils.escapeHtml('require('+JSON.stringify(module.id)).savePassword(); + require(module.id).savePassword(); }); if(obj.accessStatus == "deny") @@ -311,14 +309,6 @@ function handshake() } else if(obj.accessStatus == "needPassword") { -/* $("#editorloadingbox").html("You need a password to access this pad
" + - "
"+ - ""); - $("#passwordinput").focus(); - $(".passForm").submit(function(){ - $('.passForm button').click(); - }); -*/ $('#loading').hide(); $('#passwordRequired').show(); $("#passwordinput").focus(); diff --git a/src/templates/pad.html b/src/templates/pad.html index e37163e19..d9c6be466 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -185,16 +185,16 @@
-

You need a password to access this pad

+

You need a password to access this pad

-

You do not have permission to access this pad

+

You do not have permission to access this pad

-

Your password was wrong

+

Your password was wrong

Loading...