added gid handling to collections...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-09-16 21:17:50 +03:00
parent 782b05ee96
commit 03df38478c

View File

@ -737,7 +737,11 @@ var CollectionActions = actions.Actions({
var state = collections[title] var state = collections[title]
// build the JSON...
var s = res.collections[title] = { title: title } var s = res.collections[title] = { title: title }
if(state.gid){
s.gid = state.gid
}
var data = ((mode == 'base' && state.crop_stack) ? var data = ((mode == 'base' && state.crop_stack) ?
(state.crop_stack[0] || state.data) (state.crop_stack[0] || state.data)
: state.data) : state.data)