fixed choosing dup dir alert

This commit is contained in:
2021-03-01 19:13:38 +11:00
parent 06eb1ef927
commit 269009f14f
2 changed files with 2 additions and 4 deletions

View File

@@ -65,7 +65,7 @@
function KeepDir(row, which)
{
$('[id^=kd]').attr('class', 'alert alert-danger sm-txt')
$('[id^=kd'+row+']').attr('class', 'alert alert-danger sm-txt')
$('#kd'+row+'-d'+which).attr('class', 'alert alert-success')
$('#kdid-'+row).val( D[row.toString()+which.toString()] )
}
@@ -73,6 +73,6 @@
// force choose last of each keep file set
$('[id$=f1]').each( function () { $(this).siblings( '.alert' ).last().click() } )
// force choose last of each dir set
$('[id$=d2]').click()
$('[id$=d2]').each( function() { $(this).click() } )
</script>
{% endblock script_content %}