From b66dad86d93f053a90c6aeac40ed42f2ea74c0a3 Mon Sep 17 00:00:00 2001 From: azhar bhat Date: Wed, 16 Apr 2025 18:00:08 +0530 Subject: [PATCH 1/7] Fixed the issue where long hotel names in the search panel were going beyond the parent container. --- modules/wkroomsearchblock/views/css/chosen.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/wkroomsearchblock/views/css/chosen.css b/modules/wkroomsearchblock/views/css/chosen.css index a3df25799..50d84f432 100644 --- a/modules/wkroomsearchblock/views/css/chosen.css +++ b/modules/wkroomsearchblock/views/css/chosen.css @@ -372,6 +372,9 @@ } /* chosen-drop top - start */ +.hotel-selector-wrap{ + min-width: 0px; +} .hotel-selector-wrap .chosen-container .chosen-drop.top .chosen-results { position: absolute; width: 100%; From ca3d64317c9a6523933629b5f74b1a26f569f109 Mon Sep 17 00:00:00 2001 From: azhar bhat Date: Thu, 24 Apr 2025 15:32:22 +0530 Subject: [PATCH 2/7] resolved the placeholder issue --- .../wkroomsearchblock/views/js/wk-room-search-block.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/wkroomsearchblock/views/js/wk-room-search-block.js b/modules/wkroomsearchblock/views/js/wk-room-search-block.js index e18babcb7..c002751ce 100644 --- a/modules/wkroomsearchblock/views/js/wk-room-search-block.js +++ b/modules/wkroomsearchblock/views/js/wk-room-search-block.js @@ -136,8 +136,13 @@ const BookingSearchManager = { success: function(result) { if (result.status) { $('#hotel_cat_id').val(''); - $('#id_hotel_button').html(result.html_hotel_options); - $('#id_hotel_button').trigger('chosen:updated'); + if (/Mobi|Android|iPhone/i.test(navigator.userAgent)) { + $('#id_hotel_button').focus() + } + else{ + $('#id_hotel_button').html(result.html_hotel_options); + $('#id_hotel_button').trigger('chosen:updated'); + } // Resetting the data from previously selected hotel $('#preparation_time').val(0); var max_order_date = $('#max_order_date').val(); From 3862b42796f0d499496e5a1e261b870b7a5ed008 Mon Sep 17 00:00:00 2001 From: azhar bhat Date: Thu, 24 Apr 2025 19:54:47 +0530 Subject: [PATCH 3/7] Issues on the product page have been resolved. --- .../wkroomsearchblock/views/js/wk-room-search-block.js | 10 +++------- .../views/templates/front/hotel-options.tpl | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/wkroomsearchblock/views/js/wk-room-search-block.js b/modules/wkroomsearchblock/views/js/wk-room-search-block.js index c002751ce..742c44c7d 100644 --- a/modules/wkroomsearchblock/views/js/wk-room-search-block.js +++ b/modules/wkroomsearchblock/views/js/wk-room-search-block.js @@ -136,13 +136,9 @@ const BookingSearchManager = { success: function(result) { if (result.status) { $('#hotel_cat_id').val(''); - if (/Mobi|Android|iPhone/i.test(navigator.userAgent)) { - $('#id_hotel_button').focus() - } - else{ - $('#id_hotel_button').html(result.html_hotel_options); - $('#id_hotel_button').trigger('chosen:updated'); - } + $('#id_hotel_button').html(result.html_hotel_options); + $('#id_hotel_button').focus(); + $('#id_hotel_button').trigger('chosen:updated'); // Resetting the data from previously selected hotel $('#preparation_time').val(0); var max_order_date = $('#max_order_date').val(); diff --git a/modules/wkroomsearchblock/views/templates/front/hotel-options.tpl b/modules/wkroomsearchblock/views/templates/front/hotel-options.tpl index 1c258d2c8..946dab890 100644 --- a/modules/wkroomsearchblock/views/templates/front/hotel-options.tpl +++ b/modules/wkroomsearchblock/views/templates/front/hotel-options.tpl @@ -17,7 +17,7 @@ * @license LICENSE.txt *} - + {if isset($hotels_info) && is_array($hotels_info)} {foreach from=$hotels_info item=hotel_info}