From a8aaa01a244f0f361a091fedbe2364cb4a4f1072 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 30 Aug 2017 13:09:54 +0300 Subject: [PATCH] added config toggler... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/collections.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/ui (gen4)/features/collections.js b/ui (gen4)/features/collections.js index e0a2ff28..bffb0c62 100755 --- a/ui (gen4)/features/collections.js +++ b/ui (gen4)/features/collections.js @@ -675,13 +675,6 @@ var CollectionActions = actions.Actions({ }) } } }], - clear: [function(){ - this.collection - && this.collectionUnloaded('*') - delete this.collections - delete this.__collection_order - delete this.location.collection - }], clone: [function(full){ return function(res){ if(this.collections){ @@ -710,6 +703,18 @@ var CollectionActions = actions.Actions({ } } }], + + clear: [function(){ + this.collection + && this.collectionUnloaded('*') + delete this.collections + delete this.__collection_order + delete this.location.collection + }], + + // Config... + toggleCollectionCropRetention: ['Interface/Collection crop save mode', + core.makeConfigToggler('collection-save-crop-state', ['all', 'main', 'none'])], })