diff --git a/templates/dups.html b/templates/dups.html index 7426642..5661fd2 100644 --- a/templates/dups.html +++ b/templates/dups.html @@ -12,7 +12,9 @@ let F=[]
-
+ + {# pass this through so that the back-end can delete this message when it rm_dups #} + {% for dups in per_file_dups %} {% set outer_loop=loop.index %}
@@ -22,9 +24,12 @@ onClick="KeepFile({{outer_loop}},{{loop.index}})">{{dup.d}}/{{dup.f}} {% if loop.index < dups|length %} or + {% else %} + + {% endif %} {% endfor %}
@@ -35,10 +40,11 @@
{{dup.count}} duplicate files (same file names in 2 different directories). Choose path to KEEP:
{{dup.d1}} or {{dup.d2}} - + +
{% endfor %} @@ -54,14 +60,14 @@ { $('[id^=kf' + row + ']').attr('class', 'alert alert-danger sm-txt') $('#kf'+row+'-f'+which).attr('class', 'alert alert-success') - $('#kf'+row).val( F[row.toString()] ) + $('#kfname-'+row).val( F[row.toString()+which.toString()] ) } function KeepDir(row, which) { $('[id^=kd]').attr('class', 'alert alert-danger sm-txt') $('#kd'+row+'-d'+which).attr('class', 'alert alert-success') - $('#kd'+row).val( D[row.toString()+which.toString()] ) + $('#kdid-'+row).val( D[row.toString()+which.toString()] ) } // force choose last of each keep file set