From f36b84ecdf1091d71bf7deef2e0989b770d03be1 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Thu, 12 Mar 2015 00:11:37 +0100 Subject: [PATCH] Fixed editing tags while searching --- src/scripts/photo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/photo.js b/src/scripts/photo.js index 9a7749f..6c019af 100644 --- a/src/scripts/photo.js +++ b/src/scripts/photo.js @@ -529,8 +529,9 @@ photo.editTags = function(photoIDs) { // Get tags if (visible.photo()) oldTags = photo.json.tags; if (visible.album()&&photoIDs.length===1) oldTags = album.json.content[photoIDs].tags; + if (visible.search()&&photoIDs.length===1) oldTags = album.json.content[photoIDs].tags; if (visible.album()&&photoIDs.length>1) { - var same = true; + let same = true; photoIDs.forEach(function(id, index, array) { if(album.json.content[id].tags===album.json.content[photoIDs[0]].tags&&same===true) same = true; else same = false;