From 6988689b4c850be5eefba2867349b89af6993147 Mon Sep 17 00:00:00 2001 From: Eric Lipe Date: Mon, 19 Aug 2024 15:24:35 -0400 Subject: [PATCH] - Update css to actually support custom sizing - Remove custom callback in favor of future better solution --- admin_interface/static/admin/css/base.css | 1 - .../static/admin_interface/508/dropdown-filter.js | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/admin_interface/static/admin/css/base.css b/admin_interface/static/admin/css/base.css index 3ca4844..2da15c6 100644 --- a/admin_interface/static/admin/css/base.css +++ b/admin_interface/static/admin/css/base.css @@ -420,7 +420,6 @@ select { select[multiple] { /* Allow HTML size attribute to override the height in the rule above. */ height: auto; - min-height: 150px; } /* FORM BUTTONS */ diff --git a/admin_interface/static/admin_interface/508/dropdown-filter.js b/admin_interface/static/admin_interface/508/dropdown-filter.js index 7fa012b..25708d0 100644 --- a/admin_interface/static/admin_interface/508/dropdown-filter.js +++ b/admin_interface/static/admin_interface/508/dropdown-filter.js @@ -21,16 +21,7 @@ if (typeof (django) !== 'undefined' && typeof (django.jQuery) !== 'undefined') { const applyFiltersButton = document.querySelector('#submit-filters'); if (applyFiltersButton) { applyFiltersButton.onclick = function () { - // The code below allows the 508 filter button handler to call functions with the name - // `custom_filter_callback` to handle the query string logic for filters defined outside of this repo and the - // native Django Admin Console filters. - var custom_filter_query = "" - if (typeof custom_filter_callback === "function") { - custom_filter_query = custom_filter_callback($) - } - //////////////// - - window.location = query + custom_filter_query + window.location = query }; } });