Commit 8b39f6ff authored by Tobias Reich's avatar Tobias Reich
Browse files

- Fixed a bug where it was possible to right-click on SmartAlbums after searching

- Fixed a bug where it wasn't possible to rename albums while searching
parent e6f9909e
......@@ -18,6 +18,7 @@ album = {
else id = $(".album:hover, .album.active").attr("data-id");
// Search
if (!id) id = $(".album:hover, .album.active").attr("data-id");
if (!id) id = $(".photo:hover, .photo.active").attr("data-album-id");
if (id) return id;
......@@ -201,6 +202,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;
if (!oldTitle) oldTitle = "";
oldTitle = oldTitle.replace("'", "'");
}
......
......@@ -82,7 +82,12 @@ search = {
if (search.code!=="") {
// Trash data
albums.json = null;
album.json = null;
photo.json = null;
search.code = "";
lychee.animate(".divider", "fadeOut");
albums.load();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment