fixed BUG-76 - no existing for a non-date with move
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user