mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
some fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b800342d72
commit
46dc51076f
@ -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(
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user