Fixed a bug with special chars in descriptions, disabled debug and pushed version
This commit is contained in:
parent
a3828e72ae
commit
5b5e511cd1
@ -267,7 +267,7 @@ album = {
|
|||||||
view.album.description();
|
view.album.description();
|
||||||
}
|
}
|
||||||
|
|
||||||
params = "setAlbumDescription&albumID=" + photoID + "&description=" + escape(description);
|
params = "setAlbumDescription&albumID=" + photoID + "&description=" + escape(encodeURI(description));
|
||||||
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);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
var lychee = {
|
var lychee = {
|
||||||
|
|
||||||
title: "",
|
title: "",
|
||||||
version: "2.5 b3",
|
version: "2.5 b4",
|
||||||
version_code: "020500",
|
version_code: "020500",
|
||||||
|
|
||||||
api_path: "php/api.php",
|
api_path: "php/api.php",
|
||||||
@ -21,7 +21,7 @@ var lychee = {
|
|||||||
|
|
||||||
publicMode: false,
|
publicMode: false,
|
||||||
viewMode: false,
|
viewMode: false,
|
||||||
debugMode: true,
|
debugMode: false,
|
||||||
|
|
||||||
username: "",
|
username: "",
|
||||||
checkForUpdates: false,
|
checkForUpdates: false,
|
||||||
|
@ -352,7 +352,7 @@ photo = {
|
|||||||
view.photo.description();
|
view.photo.description();
|
||||||
}
|
}
|
||||||
|
|
||||||
params = "setPhotoDescription&photoID=" + photoID + "&description=" + escape(description);
|
params = "setPhotoDescription&photoID=" + photoID + "&description=" + escape(encodeURI(description));
|
||||||
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