Removed unused param and enabled debug mode
This commit is contained in:
parent
25ba93b89a
commit
26d7242ed2
@ -20,7 +20,7 @@ var lychee = {
|
|||||||
|
|
||||||
publicMode: false,
|
publicMode: false,
|
||||||
viewMode: false,
|
viewMode: false,
|
||||||
debugMode: false,
|
debugMode: true,
|
||||||
|
|
||||||
username: "",
|
username: "",
|
||||||
checkForUpdates: false,
|
checkForUpdates: false,
|
||||||
@ -251,10 +251,12 @@ var lychee = {
|
|||||||
.off("drop");
|
.off("drop");
|
||||||
|
|
||||||
Mousetrap
|
Mousetrap
|
||||||
.unbind('n')
|
.unbind(['u', 'ctrl+u'])
|
||||||
.unbind('u')
|
.unbind(['s', 'ctrl+s'])
|
||||||
.unbind('s')
|
.unbind(['r', 'ctrl+r'])
|
||||||
.unbind('backspace');
|
.unbind(['d', 'ctrl+d'])
|
||||||
|
.unbind(['t', 'ctrl+t'])
|
||||||
|
.unbind(['command+backspace', 'ctrl+backspace']);
|
||||||
|
|
||||||
if (mode==="public") {
|
if (mode==="public") {
|
||||||
|
|
||||||
|
@ -318,7 +318,7 @@ photo = {
|
|||||||
album.json.content[photoID].public = (album.json.content[photoID].public==0) ? 1 : 0;
|
album.json.content[photoID].public = (album.json.content[photoID].public==0) ? 1 : 0;
|
||||||
view.album.content.public(photoID);
|
view.album.content.public(photoID);
|
||||||
|
|
||||||
params = "setPhotoPublic&photoID=" + photoID + "&url=" + photo.getViewLink(photoID);
|
params = "setPhotoPublic&photoID=" + photoID;
|
||||||
lychee.api(params, function(data) {
|
lychee.api(params, function(data) {
|
||||||
|
|
||||||
if (data!==true) lychee.error(null, params, 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