mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 19:00:09 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a507511378
commit
a5d64b031c
@ -1826,12 +1826,14 @@ function sortImagesByNameWithSeqOverflow(reverse, proximity){
|
|||||||
var need_to_fix = true
|
var need_to_fix = true
|
||||||
|
|
||||||
function cmp(a, b){
|
function cmp(a, b){
|
||||||
|
if(need_to_fix){
|
||||||
// check filename compliance...
|
// check filename compliance...
|
||||||
var aa = pattern.test(IMAGES[a].path.split('/').pop())
|
var aa = pattern.test(IMAGES[a].path.split('/').pop())
|
||||||
var bb = pattern.test(IMAGES[b].path.split('/').pop())
|
var bb = pattern.test(IMAGES[b].path.split('/').pop())
|
||||||
if(need_to_fix && !aa && !bb){
|
if(!aa && !bb){
|
||||||
need_to_fix = false
|
need_to_fix = false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return imageNameCmp(a, b)
|
return imageNameCmp(a, b)
|
||||||
}
|
}
|
||||||
function getSeq(gid){
|
function getSeq(gid){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user