notes and preparing to refactor...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-02-15 05:43:39 +03:00
parent 8e2c6945d8
commit 9415271d2b
3 changed files with 10 additions and 0 deletions

View File

@ -1111,6 +1111,7 @@ module.Tags = core.ImageGridFeatures.Feature({
this.markChanged('images', gids)
}],
// XXX
['prepareIndexForWrite',
function(res, _, full){
@ -1120,6 +1121,10 @@ module.Tags = core.ImageGridFeatures.Feature({
// - ..tags.bookmark -> .bookmarked
// XXX will need a symmetrical action to reverse all of this...
}],
['prepareJSONForLoad',
function(res){
// XXX
}],
],
})

View File

@ -938,6 +938,9 @@ module.Comments = core.ImageGridFeatures.Feature({
// prepare comments for saving to "comments/<keyword>"...
//
// NOTE: this will skip the 'raw' comment field...
// NOTE: we do not change the .json() format here, so we do not
// need to do anything special to restore, i.e. no need for
// doing anything on .prepareJSONForLoad(..)
['prepareIndexForWrite',
function(res, _, full){
var changed = this.changes == null

View File

@ -464,6 +464,8 @@ module.Sort = core.ImageGridFeatures.Feature({
this.data.sort_method = 'Manual'
}],
// maintain .sort_order and .sort_cache separately from .data in
// the store...
['prepareIndexForWrite',
function(res, _, full){
var c = this.changes