mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1a626b4f5a
commit
3deb743692
@ -469,13 +469,13 @@ module.Sort = core.ImageGridFeatures.Feature({
|
||||
}],
|
||||
|
||||
['prepareIndexForWrite',
|
||||
function(res){
|
||||
function(res, _, full){
|
||||
var c = this.changes
|
||||
|
||||
var save = function(attr){
|
||||
if((c == null || c[attr]) && res.raw[attr]){
|
||||
if((full || c == null || c[attr]) && res.raw[attr]){
|
||||
// full save...
|
||||
if(c == null){
|
||||
if(full || c == null){
|
||||
res.index[attr] = res.raw[attr]
|
||||
|
||||
// build diff...
|
||||
|
||||
@ -764,7 +764,6 @@ function(){
|
||||
// currently I'm for the second option...
|
||||
//
|
||||
// XXX move this to a better spot...
|
||||
// XXX make this merge if we locate more than one index...
|
||||
var buildIndex =
|
||||
module.buildIndex = function(index, base_path){
|
||||
var res = {}
|
||||
@ -796,6 +795,7 @@ module.buildIndex = function(index, base_path){
|
||||
// buildup the data object...
|
||||
// NOTE: this is mostly to attach stuff that is stored in separate files...
|
||||
|
||||
// XXX move this to tags/marks/bookmarks...
|
||||
// .tags + bookmarks + selection...
|
||||
d.tags = index.tags || {}
|
||||
d.tags.bookmark = index.bookmarked ? index.bookmarked[0] : []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user