mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 20:00:10 +00:00
minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
03e857dd80
commit
22563a90ff
@ -588,6 +588,7 @@ var prepareIndex =
|
|||||||
module.prepareIndex =
|
module.prepareIndex =
|
||||||
function(json, changes){
|
function(json, changes){
|
||||||
changes = changes === false ? false
|
changes = changes === false ? false
|
||||||
|
// nothing set then save all...
|
||||||
: changes == null ? true
|
: changes == null ? true
|
||||||
: changes
|
: changes
|
||||||
|
|
||||||
@ -602,7 +603,7 @@ function(json, changes){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// tags...
|
// 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
|
// NOTE: we write the whole set ONLY if an item is true or undefined
|
||||||
// i.e. not false...
|
// i.e. not false...
|
||||||
if(changes === true || changes.bookmarked){
|
if(changes === true || changes.bookmarked){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user