minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-09-23 13:20:15 +04:00
parent a507511378
commit a5d64b031c

View File

@ -1826,11 +1826,13 @@ function sortImagesByNameWithSeqOverflow(reverse, proximity){
var need_to_fix = true
function cmp(a, b){
// check filename compliance...
var aa = pattern.test(IMAGES[a].path.split('/').pop())
var bb = pattern.test(IMAGES[b].path.split('/').pop())
if(need_to_fix && !aa && !bb){
need_to_fix = false
if(need_to_fix){
// check filename compliance...
var aa = pattern.test(IMAGES[a].path.split('/').pop())
var bb = pattern.test(IMAGES[b].path.split('/').pop())
if(!aa && !bb){
need_to_fix = false
}
}
return imageNameCmp(a, b)
}