diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 8c6d42ca1..55aa18320 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -236,6 +236,7 @@ if($this->session->userdata('user_id') != null) { uri->segment(1) == "station") { ?> + +

@@ -68,7 +88,7 @@
num_rows() > 0) { ?> - result() as $dxcc) { ?> end !== NULL; ?> diff --git a/assets/css/general.css b/assets/css/general.css index 83c746ef4..b2338400e 100644 --- a/assets/css/general.css +++ b/assets/css/general.css @@ -1068,6 +1068,6 @@ label { --bs-dropdown-padding-y: 0; } -#dxcc + .btn-group .multiselect-container .multiselect-option input[type="radio"] { +.btn-group .multiselect-container .multiselect-option input[type="radio"] { display: none; } \ No newline at end of file diff --git a/assets/js/sections/station_locations.js b/assets/js/sections/station_locations.js index 43268951d..13d24fb16 100644 --- a/assets/js/sections/station_locations.js +++ b/assets/js/sections/station_locations.js @@ -6,6 +6,23 @@ $(document).ready(function () { }, }); + $('#dxcc_id').multiselect({ + // template is needed for bs5 support + templates: { + button: '', + }, + enableFiltering: true, + enableFullValueFiltering: false, + enableCaseInsensitiveFiltering: true, + numberDisplayed: 1, + inheritClass: true, + buttonWidth: '100%', + maxHeight: 600 + }); + $('.multiselect-container .multiselect-filter', $('#dxcc_id').parent()).css({ + 'position': 'sticky', 'top': '0px', 'z-index': 1, 'background-color':'inherit', 'width':'100%', 'height':'37px' + }) + if (window.location.pathname.indexOf("/station/edit") !== -1 || window.location.pathname.indexOf("/station/create") !== -1 || window.location.pathname.indexOf("/station/copy") !== -1) { selectize_usa_county('#stateDropdown', '#stationCntyInputEdit'); updateStateDropdown('#dxcc_id', '#stateInputLabel', '#location_us_county', '#stationCntyInputEdit');