From a49739b41c539901afab3521135197b1204948ff Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 19 Aug 2024 18:36:35 -0700 Subject: [PATCH] add hacky workaround for TagInline not showing in admin Snapshot change view --- archivebox/templates/admin/base.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/archivebox/templates/admin/base.html b/archivebox/templates/admin/base.html index 9bcf053a..c0d9ac5b 100644 --- a/archivebox/templates/admin/base.html +++ b/archivebox/templates/admin/base.html @@ -265,7 +265,11 @@ }) console.log('Converted', buttons.children().length, 'admin actions from dropdown to buttons') } - + function fixInlineAddRow() { + $('#id_snapshottag-MAX_NUM_FORMS').val('1000') + $('.add-row').show() + } + function setupSnapshotGridListToggle() { $("#snapshot-view-list").click(selectSnapshotListView) $("#snapshot-view-grid").click(selectSnapshotGridView) @@ -290,6 +294,7 @@ } $(document).ready(function() { fix_actions() + fixInlineAddRow() setupSnapshotGridListToggle() setTimeOffset() selectSnapshotIfHotlinked()