Removed unused param and enabled debug mode
This commit is contained in:
parent
25ba93b89a
commit
26d7242ed2
@ -20,7 +20,7 @@ var lychee = {
|
||||
|
||||
publicMode: false,
|
||||
viewMode: false,
|
||||
debugMode: false,
|
||||
debugMode: true,
|
||||
|
||||
username: "",
|
||||
checkForUpdates: false,
|
||||
@ -251,10 +251,12 @@ var lychee = {
|
||||
.off("drop");
|
||||
|
||||
Mousetrap
|
||||
.unbind('n')
|
||||
.unbind('u')
|
||||
.unbind('s')
|
||||
.unbind('backspace');
|
||||
.unbind(['u', 'ctrl+u'])
|
||||
.unbind(['s', 'ctrl+s'])
|
||||
.unbind(['r', 'ctrl+r'])
|
||||
.unbind(['d', 'ctrl+d'])
|
||||
.unbind(['t', 'ctrl+t'])
|
||||
.unbind(['command+backspace', 'ctrl+backspace']);
|
||||
|
||||
if (mode==="public") {
|
||||
|
||||
|
@ -318,7 +318,7 @@ photo = {
|
||||
album.json.content[photoID].public = (album.json.content[photoID].public==0) ? 1 : 0;
|
||||
view.album.content.public(photoID);
|
||||
|
||||
params = "setPhotoPublic&photoID=" + photoID + "&url=" + photo.getViewLink(photoID);
|
||||
params = "setPhotoPublic&photoID=" + photoID;
|
||||
lychee.api(params, function(data) {
|
||||
|
||||
if (data!==true) lychee.error(null, params, data);
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user