some fixes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-09-28 03:57:54 +03:00
parent b800342d72
commit 46dc51076f
2 changed files with 12 additions and 5 deletions

View File

@ -46,8 +46,11 @@ var widgets = require('features/ui-widgets')
//
//
var MAIN_COLLECTION_TITLE = '$ALL'
var MAIN_COLLECTION_GID = '0'
// XXX should these be in .config???
var MAIN_COLLECTION_TITLE =
module.MAIN_COLLECTION_TITLE = '$ALL'
var MAIN_COLLECTION_GID =
module.MAIN_COLLECTION_GID = '0'
// XXX undo...
var CollectionActions = actions.Actions({
@ -1032,11 +1035,13 @@ module.Collection = core.ImageGridFeatures.Feature({
}],
// basic collection edits...
[[
'collect',
// NOTE: no need to handle .collect(..) here as it calls .joinCollect(..)
'joinCollect',
'uncollect',
],
function(_, collection){
function(){
var args = [].slice.call(arguments, 1)
var collection = args.length == 1 ? args[0] : args[1]
this.markChanged(
'collection: '
+JSON.stringify(

View File

@ -17,6 +17,8 @@ var widgets = require('features/ui-widgets')
var browse = require('lib/widget/browse')
var collections = require('features/collections')
/*********************************************************************/
@ -147,7 +149,7 @@ module.GLOBAL_KEYBOARD = {
'Del',
],
Esc: 'loadCollection: "ALL" -- Load all images',
Esc: 'loadCollection: "'+ collections.MAIN_COLLECTION_TITLE +'" -- Load all images',
Del: 'uncollect',
shift_Del: 'uncollectMarked',