From 99e52fd2f6fe74e1469c9b0fb539d96230de16df Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 15 Sep 2023 17:07:16 +0530 Subject: [PATCH] Updated: Use Chosen plugin to select hotel on Catalog > Add Room Type page --- admin/themes/default/sass/partials/_chosen.sass | 2 ++ .../default/template/controllers/products/informations.tpl | 2 +- js/admin.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/themes/default/sass/partials/_chosen.sass b/admin/themes/default/sass/partials/_chosen.sass index 9f5f1f7e7..25ff66ef3 100644 --- a/admin/themes/default/sass/partials/_chosen.sass +++ b/admin/themes/default/sass/partials/_chosen.sass @@ -200,6 +200,8 @@ $chosen-sprite-path: '../img/chosen-sprite.png' input position: absolute @include left(-9000px) + &:before + visibility: hidden .chosen-container-multi .chosen-choices diff --git a/admin/themes/default/template/controllers/products/informations.tpl b/admin/themes/default/template/controllers/products/informations.tpl index 89ff4ac8c..d66b7e120 100644 --- a/admin/themes/default/template/controllers/products/informations.tpl +++ b/admin/themes/default/template/controllers/products/informations.tpl @@ -137,7 +137,7 @@ {l s='Select Hotel'}
- {foreach from=$htl_info item=htl_dtl} {/foreach} diff --git a/js/admin.js b/js/admin.js index 4d474721a..2c10e2795 100644 --- a/js/admin.js +++ b/js/admin.js @@ -756,7 +756,7 @@ $(document).ready(function() $('select.chosen').each(function(k, item){ - $(item).chosen({disable_search_threshold: 10, search_contains: true}); + $(item).chosen({disable_search_threshold: 5, search_contains: true}); }); // Apply chosen() when modal is loaded $(document).on('shown.bs.modal', function (e) {