mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
notes and preparing to refactor...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8e2c6945d8
commit
9415271d2b
@ -1111,6 +1111,7 @@ module.Tags = core.ImageGridFeatures.Feature({
|
|||||||
|
|
||||||
this.markChanged('images', gids)
|
this.markChanged('images', gids)
|
||||||
}],
|
}],
|
||||||
|
|
||||||
// XXX
|
// XXX
|
||||||
['prepareIndexForWrite',
|
['prepareIndexForWrite',
|
||||||
function(res, _, full){
|
function(res, _, full){
|
||||||
@ -1120,6 +1121,10 @@ module.Tags = core.ImageGridFeatures.Feature({
|
|||||||
// - ..tags.bookmark -> .bookmarked
|
// - ..tags.bookmark -> .bookmarked
|
||||||
// XXX will need a symmetrical action to reverse all of this...
|
// XXX will need a symmetrical action to reverse all of this...
|
||||||
}],
|
}],
|
||||||
|
['prepareJSONForLoad',
|
||||||
|
function(res){
|
||||||
|
// XXX
|
||||||
|
}],
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -938,6 +938,9 @@ module.Comments = core.ImageGridFeatures.Feature({
|
|||||||
// prepare comments for saving to "comments/<keyword>"...
|
// prepare comments for saving to "comments/<keyword>"...
|
||||||
//
|
//
|
||||||
// NOTE: this will skip the 'raw' comment field...
|
// 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',
|
['prepareIndexForWrite',
|
||||||
function(res, _, full){
|
function(res, _, full){
|
||||||
var changed = this.changes == null
|
var changed = this.changes == null
|
||||||
|
|||||||
@ -464,6 +464,8 @@ module.Sort = core.ImageGridFeatures.Feature({
|
|||||||
this.data.sort_method = 'Manual'
|
this.data.sort_method = 'Manual'
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
// maintain .sort_order and .sort_cache separately from .data in
|
||||||
|
// the store...
|
||||||
['prepareIndexForWrite',
|
['prepareIndexForWrite',
|
||||||
function(res, _, full){
|
function(res, _, full){
|
||||||
var c = this.changes
|
var c = this.changes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user