Fixes an escaping issue (#89)
This commit is contained in:
parent
7116aa68db
commit
e500493c7c
File diff suppressed because one or more lines are too long
@ -200,6 +200,7 @@ album = {
|
||||
// Get old title if only one album is selected
|
||||
if (album.json) oldTitle = album.json.title;
|
||||
else if (albums.json) oldTitle = albums.json.content[albumIDs].title;
|
||||
oldTitle = oldTitle.replace("'", "'");
|
||||
}
|
||||
|
||||
buttons = [
|
||||
@ -239,7 +240,7 @@ album = {
|
||||
|
||||
setDescription: function(photoID) {
|
||||
|
||||
var oldDescription = album.json.description,
|
||||
var oldDescription = album.json.description.replace("'", "'"),
|
||||
description,
|
||||
params,
|
||||
buttons;
|
||||
|
@ -139,6 +139,7 @@ photo = {
|
||||
// Get old title if only one photo is selected
|
||||
if (photo.json) oldTitle = photo.json.title;
|
||||
else if (album.json) oldTitle = album.json.content[photoIDs].title;
|
||||
oldTitle = oldTitle.replace("'", "'");
|
||||
}
|
||||
|
||||
buttons = [
|
||||
@ -266,7 +267,7 @@ photo = {
|
||||
|
||||
setDescription: function(photoID) {
|
||||
|
||||
var oldDescription = photo.json.description,
|
||||
var oldDescription = photo.json.description.replace("'", "'"),
|
||||
description,
|
||||
params,
|
||||
buttons;
|
||||
|
Loading…
Reference in New Issue
Block a user