From 2ac7223d546cac96199c07274e30b7ec5516154f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 30 Oct 2018 13:34:06 +0300 Subject: [PATCH] docs... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/sort.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ui (gen4)/features/sort.js b/ui (gen4)/features/sort.js index ca7d1deb..d88d845f 100755 --- a/ui (gen4)/features/sort.js +++ b/ui (gen4)/features/sort.js @@ -503,19 +503,19 @@ module.SortActions = actions.Actions({ this.data.updateImagePositions() }], - // Toggle sort modes... - // - // This is similar to sort images but it will also maintain - // .data.manual_order state. - // - // NOTE: a state can be passed appended with reverse, e.g. - // .toggleImageSort('Date') and .toggleImageSort('Date reverse') - // both will set the sort method to 'Date' but the later will - // also reverse it. - // // XXX should we merge manual order handling with .sortImages(..)??? // XXX currently this will not toggle past 'none' toggleImageSort: ['- Edit|Sort/Image sort method', + core.doc`Toggle sort modes... + + This is similar to sort images but it will also maintain + .data.manual_order state. + + NOTE: a state can be passed appended with reverse, e.g. + .toggleImageSort('Date') and .toggleImageSort('Date reverse') + both will set the sort method to 'Date' but the later will + also reverse it. + `, toggler.Toggler(null, function(){ return (this.data