mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 03:40:09 +00:00
reworked the image sort dialog, now allot simpler...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e214eeedaf
commit
49c1bf033f
23
ui/ui.js
23
ui/ui.js
@ -973,28 +973,24 @@ function sortImagesDialog(message){
|
||||
|
||||
updateStatus('Sort...').show()
|
||||
|
||||
//message = message == null ? 'Sort images by: | By default in ascending order.' : message
|
||||
message = message == null ? 'Sort images by:' : message
|
||||
|
||||
cfg = {}
|
||||
cfg[message] = [
|
||||
'Date (ascending)',
|
||||
'Date (descending)',
|
||||
|
||||
'Sequence number (ascending)',
|
||||
'Sequence number (descending)',
|
||||
|
||||
'Sequence number with overflow (ascending)',
|
||||
'Sequence number with overflow (descending)',
|
||||
|
||||
'File name (ascending)',
|
||||
'File name (descending)'
|
||||
'Date',
|
||||
'Sequence number',
|
||||
'Sequence number with overflow',
|
||||
'File name'
|
||||
]
|
||||
cfg['Descending'] = false
|
||||
|
||||
formDialog(null, '',
|
||||
cfg,
|
||||
'OK',
|
||||
'sortImagesDialog')
|
||||
.done(function(res){
|
||||
var reverse = res['Descending']
|
||||
res = res[message]
|
||||
|
||||
if(/Date/i.test(res)){
|
||||
@ -1012,11 +1008,6 @@ function sortImagesDialog(message){
|
||||
} else {
|
||||
var method = sortImagesByFileName
|
||||
}
|
||||
if(/\(ascending\)/.test(res)){
|
||||
var reverse = null
|
||||
} else {
|
||||
var reverse = true
|
||||
}
|
||||
|
||||
showStatusQ('Sorting by: '+res+'...')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user