Fixes an escaping issue (#89)

This commit is contained in:
Tobias Reich 2014-02-28 15:08:05 +01:00
parent 7116aa68db
commit e500493c7c
3 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -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;

View File

@ -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;