Update strings, add UK strings, fix JS

pull/1221/head
root 2012-12-03 11:35:06 +00:00
parent a74defdab7
commit 84d154b168
3 changed files with 7 additions and 14 deletions

View File

@ -21,6 +21,9 @@ pad.toolbar.showusers.title = Show the users on this pad
pad.colorpicker.save = Save pad.colorpicker.save = Save
pad.colorpicker.cancel = Cancel pad.colorpicker.cancel = Cancel
pad.loading = Loading... 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.padSettings = Pad Settings
pad.settings.myView = My View pad.settings.myView = My View
pad.settings.stickychat = Chat always on screen pad.settings.stickychat = Chat always on screen

View File

@ -299,9 +299,7 @@ function handshake()
if(!receivedClientVars && obj.accessStatus) if(!receivedClientVars && obj.accessStatus)
{ {
$('.passForm').submit(function(){ $('.passForm').submit(function(){
// THIS BIT DOESNT WORK require(module.id).savePassword();
alert("I AM BROKEN");
padutils.escapeHtml('require('+JSON.stringify(module.id)).savePassword();
}); });
if(obj.accessStatus == "deny") if(obj.accessStatus == "deny")
@ -311,14 +309,6 @@ function handshake()
} }
else if(obj.accessStatus == "needPassword") else if(obj.accessStatus == "needPassword")
{ {
/* $("#editorloadingbox").html("<b>You need a password to access this pad</b><br>" +
"<form class='passForm'><input id='passwordinput' type='password' name='password'>"+
"<button type='button' onclick=\"" + padutils.escapeHtml('require('+JSON.stringify(module.id)+").savePassword();") + "\">ok</button></div>");
$("#passwordinput").focus();
$(".passForm").submit(function(){
$('.passForm button').click();
});
*/
$('#loading').hide(); $('#loading').hide();
$('#passwordRequired').show(); $('#passwordRequired').show();
$("#passwordinput").focus(); $("#passwordinput").focus();

View File

@ -185,16 +185,16 @@
<div id="editorcontainer"></div> <div id="editorcontainer"></div>
<div id="editorloadingbox"> <div id="editorloadingbox">
<div id="passwordRequired"> <div id="passwordRequired">
<p data-l10n-id="pad.youneedpasword">You need a password to access this pad</p> <p data-l10n-id="pad.passwordRequired">You need a password to access this pad</p>
<form class='passForm'> <form class='passForm'>
<input id='passwordinput' type='password' name='password'><input type='submit' value='Submit'> <input id='passwordinput' type='password' name='password'><input type='submit' value='Submit'>
</form> </form>
</div> </div>
<div id="permissionDenied"> <div id="permissionDenied">
<p data-l10n-id="pad.youdonthavepermission">You do not have permission to access this pad</p> <p data-l10n-id="pad.permissionDenied">You do not have permission to access this pad</p>
</div> </div>
<div id="wrongPassword"> <div id="wrongPassword">
<p data-l10n-id="pad.wrongpassword">Your password was wrong</p> <p data-l10n-id="pad.wrongPassword">Your password was wrong</p>
</div> </div>
<p data-l10n-id="pad.loading" id="loading">Loading...</p> <p data-l10n-id="pad.loading" id="loading">Loading...</p>
<noscript><strong>Sorry, you have to enable Javascript in order to use this.</strong></noscript> <noscript><strong>Sorry, you have to enable Javascript in order to use this.</strong></noscript>