mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
49c1bf033f
commit
cf9d6b301f
14
ui/ui.js
14
ui/ui.js
@ -969,29 +969,29 @@ function loadDirectoryDialog(dfl){
|
||||
}
|
||||
|
||||
|
||||
function sortImagesDialog(message){
|
||||
function sortImagesDialog(){
|
||||
|
||||
updateStatus('Sort...').show()
|
||||
|
||||
//message = message == null ? 'Sort images by: | By default in ascending order.' : message
|
||||
message = message == null ? 'Sort images by:' : message
|
||||
var alg = 'Sort images by (ascending):'
|
||||
var rev = 'Reverse order'
|
||||
|
||||
cfg = {}
|
||||
cfg[message] = [
|
||||
cfg[alg] = [
|
||||
'Date',
|
||||
'Sequence number',
|
||||
'Sequence number with overflow',
|
||||
'File name'
|
||||
]
|
||||
cfg['Descending'] = false
|
||||
cfg[rev] = false
|
||||
|
||||
formDialog(null, '',
|
||||
cfg,
|
||||
'OK',
|
||||
'sortImagesDialog')
|
||||
.done(function(res){
|
||||
var reverse = res['Descending']
|
||||
res = res[message]
|
||||
var reverse = res[rev]
|
||||
res = res[alg]
|
||||
|
||||
if(/Date/i.test(res)){
|
||||
var method = sortImagesByDate
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user