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

This commit is contained in:
Nick Sweeting 2024-08-19 18:36:35 -07:00
parent cf2faecf61
commit a49739b41c
No known key found for this signature in database

View file

@ -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()