diff --git a/public/js/main.js b/public/js/main.js index 15c8c4c..0ba573f 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -71,22 +71,21 @@ Vue.component('l-icon', window.Vue2Leaflet.LIcon); Vue.component('l-popup', window.Vue2Leaflet.LPopup); Vue.component('l-tooltip', window.Vue2Leaflet.LTooltip); Vue.component('l-control-scale', window.Vue2Leaflet.LControlScale); -Vue.use(window.VueTextareaAutosize) - -Vue.component('multiselect', window.VueMultiselect.default) +Vue.use(window.VueTextareaAutosize); +Vue.component('multiselect', window.VueMultiselect.default); const app = new Vue({ el: '#app', data: { - journey_id : window.location.pathname.toString().split('/').at(-1) || gen_id(16), - journey_step: window.location.hash.slice(1)==""?((window.location.pathname.toString().split('/').at(1)=='view')?0:-1):parseInt(window.location.hash.slice(1)), + journey_id : window.location.pathname.split('/').pop() || gen_id(16), + journey_step: window.location.hash.slice(1)==""?((window.location.pathname.split('/').at(1)=='view')?0:-1):parseInt(window.location.hash.slice(1)), journey_step_data: {day:-1, section:-1}, journey_data : { name: "New Journey", main:[], step_title:[], }, - view: window.location.pathname.toString().split('/').at(1)=='view', + view: window.location.pathname.split('/').at(1)=='view', query:{hotel:[],flight:[],nominatim:[]}, querying:{hotel:false,flight:false,place:false,food:false}, impexp:"", diff --git a/public/template/journey.html b/public/template/journey.html index d09dc9e..20ece42 100644 --- a/public/template/journey.html +++ b/public/template/journey.html @@ -184,7 +184,7 @@ -
+
@@ -333,7 +333,7 @@
-
+