From 269009f14f3c6c4232f1b378872276ea33c2eed1 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Mon, 1 Mar 2021 19:13:38 +1100 Subject: [PATCH] fixed choosing dup dir alert --- BUGs | 2 -- templates/dups.html | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/BUGs b/BUGs index 38c123a..45e1bc4 100644 --- a/BUGs +++ b/BUGs @@ -2,5 +2,3 @@ BUG-25: file counts are wacky, now? import says 7 of 7, but there are 5 files 2 dirs file_details = 7 of 3?!? - -BUG-26: when choosing between duplicate dirs to keep, the radio buytton is not unique per directory, so if you have 10 sets of dirs, only the bottom one has a green option diff --git a/templates/dups.html b/templates/dups.html index 5661fd2..aa0b7e4 100644 --- a/templates/dups.html +++ b/templates/dups.html @@ -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() } ) {% endblock script_content %}