diff --git a/datasette/templates/_debug_common_functions.html b/datasette/templates/_debug_common_functions.html index 6dd5a9d9..d988a2f3 100644 --- a/datasette/templates/_debug_common_functions.html +++ b/datasette/templates/_debug_common_functions.html @@ -40,26 +40,6 @@ function populateFormFromURL() { return params; } -// Update URL with current form values -function updateURL(formId, page = 1) { - const form = document.getElementById(formId); - const formData = new FormData(form); - const params = new URLSearchParams(); - - for (const [key, value] of formData.entries()) { - if (value) { - params.append(key, value); - } - } - - if (page > 1) { - params.set('page', page.toString()); - } - - const newURL = window.location.pathname + (params.toString() ? '?' + params.toString() : ''); - window.history.pushState({}, '', newURL); -} - // HTML escape function function escapeHtml(text) { if (text === null || text === undefined) return ''; diff --git a/datasette/templates/debug_allowed.html b/datasette/templates/debug_allowed.html index e3dc5250..add3154a 100644 --- a/datasette/templates/debug_allowed.html +++ b/datasette/templates/debug_allowed.html @@ -23,7 +23,7 @@ {% endif %}