mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
minor cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9ba099f79d
commit
56063274aa
@ -1373,8 +1373,6 @@ module.CollectionTags = core.ImageGridFeatures.Feature({
|
|||||||
}],
|
}],
|
||||||
|
|
||||||
|
|
||||||
// XXX should we be a bit more atomic and save tags iff
|
|
||||||
// they were changed only???
|
|
||||||
['prepareIndexForWrite',
|
['prepareIndexForWrite',
|
||||||
function(res, _, full){
|
function(res, _, full){
|
||||||
var raw = res.raw.collections || {}
|
var raw = res.raw.collections || {}
|
||||||
@ -1383,8 +1381,7 @@ module.CollectionTags = core.ImageGridFeatures.Feature({
|
|||||||
// for changes as this is already taken care off by
|
// for changes as this is already taken care off by
|
||||||
// the main collections feature, here we just update
|
// the main collections feature, here we just update
|
||||||
// the stuff it created...
|
// the stuff it created...
|
||||||
// XXX should we be a bit more atomic and save tags iff
|
// XXX should we iterate over index or raw here???
|
||||||
// they were changed only???
|
|
||||||
Object.keys(raw).forEach(function(title){
|
Object.keys(raw).forEach(function(title){
|
||||||
var path = 'collections/'+ raw[title].gid
|
var path = 'collections/'+ raw[title].gid
|
||||||
var metadata = res.index[path + '/metadata']
|
var metadata = res.index[path + '/metadata']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user