mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-26 10:26:15 -04:00
Update strings, add UK strings, fix JS
This commit is contained in:
parent
a74defdab7
commit
84d154b168
3 changed files with 7 additions and 14 deletions
|
@ -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("<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();
|
||||
$('#passwordRequired').show();
|
||||
$("#passwordinput").focus();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue