|
@@ -294,7 +294,7 @@ photo.setTitle = function(photoIDs) {
|
|
// Get old title if only one photo is selected
|
|
// Get old title if only one photo is selected
|
|
if (photo.json) oldTitle = photo.json.title;
|
|
if (photo.json) oldTitle = photo.json.title;
|
|
else if (album.json) oldTitle = album.json.content[photoIDs].title;
|
|
else if (album.json) oldTitle = album.json.content[photoIDs].title;
|
|
- oldTitle = oldTitle.replace("'", ''');
|
|
|
|
|
|
+ oldTitle = oldTitle.replace(/'/g, ''');
|
|
}
|
|
}
|
|
|
|
|
|
action = function(data) {
|
|
action = function(data) {
|
|
@@ -477,7 +477,7 @@ photo.setPublic = function(photoID, e) {
|
|
|
|
|
|
photo.setDescription = function(photoID) {
|
|
photo.setDescription = function(photoID) {
|
|
|
|
|
|
- var oldDescription = photo.json.description.replace("'", '''),
|
|
|
|
|
|
+ var oldDescription = photo.json.description.replace(/'/g, '''),
|
|
action;
|
|
action;
|
|
|
|
|
|
action = function(data) {
|
|
action = function(data) {
|