Browse Source

add hacky workaround for TagInline not showing in admin Snapshot change view

Nick Sweeting 1 year ago
parent
commit
a49739b41c
1 changed files with 6 additions and 1 deletions
  1. 6 1
      archivebox/templates/admin/base.html

+ 6 - 1
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()