Skip to content

Commit

Permalink
Merge pull request #827 from abhishek-webkul/gli-1589
Browse files Browse the repository at this point in the history
Updated: Use Chosen plugin to select hotel on Catalog > Add Room Type page
  • Loading branch information
rohit053 authored Dec 28, 2023
2 parents 2c9be23 + 6442f47 commit fc8d790
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions admin/themes/default/sass/partials/_chosen.sass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
{l s='Select Hotel'}
</label>
<div class="col-sm-5">
<select name="id_hotel" id="hotel_place" class="form-control">
<select name="id_hotel" id="hotel_place" class="form-control chosen">
{foreach from=$htl_info item=htl_dtl}
<option value="{$htl_dtl['id']}" >{$htl_dtl['hotel_name']}</option>
{/foreach}
Expand Down
2 changes: 1 addition & 1 deletion js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fc8d790

Please sign in to comment.