mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
cleanup and doc...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
67e414358c
commit
f14cb36aa0
@ -2771,10 +2771,18 @@ var UICollectionActions = actions.Actions({
|
|||||||
//*/
|
//*/
|
||||||
|
|
||||||
|
|
||||||
|
// XXX doc...
|
||||||
collectionSort: ['- Collections/',
|
collectionSort: ['- Collections/',
|
||||||
core.doc`Sort collection A (sorted) as collection B (sort_as)...
|
core.doc`Sort collection A (sorted) as collection B (sort_as)...
|
||||||
|
|
||||||
|
.collectionSort(sorted, sort_as)
|
||||||
|
.collectionSort(sorted, sort_as, mode)
|
||||||
|
-> promise(A, B)
|
||||||
|
|
||||||
|
|
||||||
|
NOTE: in spite of the name this can also sort the main data/collection.
|
||||||
|
NOTE: if either sorted or sort_as are not given or are null the main
|
||||||
|
collection is assumed by default.
|
||||||
NOTE: if sorted and sort_as are the same collection this will do nothing.
|
NOTE: if sorted and sort_as are the same collection this will do nothing.
|
||||||
`,
|
`,
|
||||||
function(sorted, sort_as, mode='in-place'){
|
function(sorted, sort_as, mode='in-place'){
|
||||||
@ -2796,7 +2804,7 @@ var UICollectionActions = actions.Actions({
|
|||||||
&& that.sortImages('update') }) }],
|
&& that.sortImages('update') }) }],
|
||||||
|
|
||||||
// XXX revise naming...
|
// XXX revise naming...
|
||||||
sortAsCollection: ['Collections/Sort as collection...',
|
sortAsCollection: ['Sort|Collections/Sort as collection...',
|
||||||
core.doc`Sort current collection as selected.`,
|
core.doc`Sort current collection as selected.`,
|
||||||
{sortMethod: true,
|
{sortMethod: true,
|
||||||
mode: function(){
|
mode: function(){
|
||||||
@ -2807,7 +2815,7 @@ var UICollectionActions = actions.Actions({
|
|||||||
null,
|
null,
|
||||||
{ show_main: function(){
|
{ show_main: function(){
|
||||||
return !!this.collection } })],
|
return !!this.collection } })],
|
||||||
sortCollectionAsThis: ['- Collections/Sort collection as current...',
|
sortCollectionAsThis: ['Sort|Collections/Sort collection as current...',
|
||||||
core.doc`Sort selected collection as current.`,
|
core.doc`Sort selected collection as current.`,
|
||||||
{sortMethod: true,
|
{sortMethod: true,
|
||||||
mode: 'sortAsCollection', },
|
mode: 'sortAsCollection', },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user