mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
make it show password dialog on wrong password
This commit is contained in:
parent
4843840d72
commit
d09894ce77
2 changed files with 12 additions and 1 deletions
|
@ -315,6 +315,7 @@ function handshake()
|
||||||
{
|
{
|
||||||
$('#loading').hide();
|
$('#loading').hide();
|
||||||
$('#wrongPassword').show();
|
$('#wrongPassword').show();
|
||||||
|
$('#passwordRequired').show();
|
||||||
$("#passwordinput").focus();
|
$("#passwordinput").focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,9 +52,19 @@ function createCookie(name, value, days, path)
|
||||||
if(!path)
|
if(!path)
|
||||||
path = "/";
|
path = "/";
|
||||||
|
|
||||||
|
if(!path)
|
||||||
|
path = "/";
|
||||||
|
|
||||||
|
//Check if the browser is IE and if so make sure the full path is set in the cookie
|
||||||
|
if(navigator.appName=='Microsoft Internet Explorer'){
|
||||||
|
document.cookie = name + "=" + value + expires + "; path="+document.location;
|
||||||
|
}
|
||||||
|
else{
|
||||||
document.cookie = name + "=" + value + expires + "; path=" + path;
|
document.cookie = name + "=" + value + expires + "; path=" + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function readCookie(name)
|
function readCookie(name)
|
||||||
{
|
{
|
||||||
var nameEQ = name + "=";
|
var nameEQ = name + "=";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue