Fixed incorrect info about password in infobox

This commit is contained in:
Tobias Reich 2014-07-25 21:33:55 +02:00
parent 8974b7c2aa
commit 64a9d7ab5e
2 changed files with 6 additions and 3 deletions

View File

@ -308,10 +308,10 @@ album = {
if ($(".message .choice input[name='password']:checked").val()==="password") {
password = md5($(".message input.text").val());
album.json.password = true;
album.json.password = 1;
} else {
password = "";
album.json.password = false;
album.json.password = 0;
}
if ($(".message .choice input[name='listed']:checked").val()==="listed") listed = true;
@ -323,8 +323,11 @@ album = {
if (visible.album()) {
album.json.public = (album.json.public==0) ? 1 : 0;
album.json.password = (album.json.public==0) ? 0 : album.json.password;
view.album.public();
view.album.password();
if (album.json.public==1) contextMenu.shareAlbum(albumID, e);
}

File diff suppressed because one or more lines are too long