From c29ce7e7f03dc1bbb0c502280ef3b65ee9204f04 Mon Sep 17 00:00:00 2001 From: jdcaballerov Date: Mon, 14 Dec 2020 16:00:59 -0500 Subject: [PATCH] Add border for card select --- archivebox/themes/admin/base.html | 9 ++++++++- archivebox/themes/admin/snapshots_grid.html | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/archivebox/themes/admin/base.html b/archivebox/themes/admin/base.html index 00dfec45..d8ad8d00 100644 --- a/archivebox/themes/admin/base.html +++ b/archivebox/themes/admin/base.html @@ -226,7 +226,14 @@ $("#snapshotGridView").click(function() { selectSnapshotGridView(); }); - + + $('input:checkbox').change(function(){ + if($(this).is(':checked')) + $(this).parent().parent().parent().parent().addClass('selected-card'); + else + $(this).parent().parent().parent().parent().removeClass('selected-card') + }); + }); }; $(function () { diff --git a/archivebox/themes/admin/snapshots_grid.html b/archivebox/themes/admin/snapshots_grid.html index d374cff5..a7a2d4f9 100644 --- a/archivebox/themes/admin/snapshots_grid.html +++ b/archivebox/themes/admin/snapshots_grid.html @@ -119,6 +119,9 @@ footer { margin-left: .5rem; } +.selected-card{ + border: 5px solid #ffaa31; +}