diff --git a/public/js/main.js b/public/js/main.js index 6b3370e..b5aed22 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -33,7 +33,7 @@ const icon_type = (item)=>{ const arr = ["restaurant", "cafe", "pub", "bar", "fast_food", "food_court"]; if(arr.indexOf(t)!=-1){ return 'utensils'; - }else if(t=='hotel'){ + }else if(t=='hotel' || t=='hostel'){ return 'bed'; }else if(t=='museum'){ return 'landmark'; @@ -262,7 +262,7 @@ const app = new Vue({ this.journey_step_data = this.step_convert(this.journey_step); }); this.debounceSave = _.debounce(this.save_data, 500) - this.debounceSearch = {"hotel":_.debounce((q)=>{this.querying.hotel=true;this.search_nominatim(q,(r)=>(r.type=="hotel")).then((r)=>{this.querying.hotel=false});}, 500), + this.debounceSearch = {"hotel":_.debounce((q)=>{this.querying.hotel=true;this.search_nominatim(q,(r)=>(r.type=="hotel" || r.type=="hostel")).then((r)=>{this.querying.hotel=false});}, 500), "restaurants":_.debounce((q)=>{this.querying.food=true;this.search_nominatim(q,(r)=>(is_restauration_type(r.type))).then((r)=>{this.querying.food=false});}, 500), "places":_.debounce((q)=>{this.querying.place=true;this.search_nominatim(q,(r)=>(true)).then((r)=>{this.querying.place=false});}, 500), "other":_.debounce((q)=>{this.querying.any=true;this.search_nominatim(q,(r)=>(true)).then((r)=>{this.querying.any=false});}, 500),