|
@@ -222,12 +222,15 @@ album = {
|
|
|
newTitle = (newTitle==="") ? "Untitled" : newTitle;
|
|
|
|
|
|
if (visible.album()) {
|
|
|
- var id = albumIDs[0];
|
|
|
-
|
|
|
+
|
|
|
album.json.title = newTitle;
|
|
|
- albums.json.content[id].title = newTitle;
|
|
|
view.album.title();
|
|
|
|
|
|
+ if (albums.json) {
|
|
|
+ var id = albumIDs[0];
|
|
|
+ albums.json.content[id].title = newTitle;
|
|
|
+ }
|
|
|
+
|
|
|
} else if (visible.albums()) {
|
|
|
|
|
|
albumIDs.forEach(function(id) {
|