fixed BUG-76 - no existing for a non-date with move

This commit is contained in:
2022-01-09 18:13:26 +11:00
parent dd38b9b1d6
commit a84946b561
3 changed files with 9 additions and 23 deletions

View File

@@ -48,6 +48,8 @@ function GetExistingDirsAsDiv( dt, divname )
dirs.forEach( function(item, index) {
s+= '<button class="btn btn-outline-primary" type="button" onClick="$(\'#prefix\').val(\''+item.prefix+'\'); $(\'#suffix\').val(\''+item.suffix+'\');return false;">'+item.prefix+'/'+item.suffix+'</button>'
} )
if( s == '' )
$('#existing').html('')
$('#'+divname).html(s)
}
} )
@@ -69,7 +71,7 @@ function MoveDBox(path_details, db_url)
div+=GetSelnAsDiv()
yr=$('.highlight').first().attr('yr')
dt=$('.highlight').first().attr('date')
div+='<div class="col-12">Use Existing:</div><div id="existing"></div>'
div+='<div id="existing" class="col-12">Use Existing:</div><div id="existing"></div>'
GetExistingDirsAsDiv( dt, "existing" )
div+=`
<div class="input-group my-3">