From 22563a90ff8b9d645ebdf051bd0ac8f6867f57e3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 16 Dec 2015 04:07:29 +0300 Subject: [PATCH] minor bugfix... Signed-off-by: Alex A. Naanou --- ui (gen4)/file.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/file.js b/ui (gen4)/file.js index 059ef58e..589b2386 100755 --- a/ui (gen4)/file.js +++ b/ui (gen4)/file.js @@ -588,6 +588,7 @@ var prepareIndex = module.prepareIndex = function(json, changes){ changes = changes === false ? false + // nothing set then save all... : changes == null ? true : changes @@ -602,7 +603,7 @@ function(json, changes){ } // tags... - if(changes === true || changes && json.data.tags != null){ + if((changes === true || changes) && json.data.tags != null){ // NOTE: we write the whole set ONLY if an item is true or undefined // i.e. not false... if(changes === true || changes.bookmarked){