Skip to content

Commit

Permalink
- Update css to actually support custom sizing
Browse files Browse the repository at this point in the history
- Remove custom callback in favor of future better solution
  • Loading branch information
elipe17 committed Aug 19, 2024
1 parent d1ada1a commit 6988689
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion admin_interface/static/admin/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
11 changes: 1 addition & 10 deletions admin_interface/static/admin_interface/508/dropdown-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}
});
Expand Down

0 comments on commit 6988689

Please sign in to comment.