From 0162474bf430737879de0ae3e5b554ecd75c3dfe Mon Sep 17 00:00:00 2001 From: choelzl Date: Fri, 16 Jul 2021 19:37:35 +0200 Subject: [PATCH] cleanup --- public/js/main.js | 6 +++--- public/template/journey.html | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 36598ec..472a021 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -78,15 +78,15 @@ Vue.component('multiselect', window.VueMultiselect.default) const app = new Vue({ el: '#app', data: { - journey_id : window.location.pathname.split('/').at(-1) || 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_id : (window.location.pathname + '').split('/').at(-1) || 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.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 ba2fe71..d09dc9e 100644 --- a/public/template/journey.html +++ b/public/template/journey.html @@ -79,9 +79,9 @@

{{item.hotel.sname}}

{{item.hotel.display_name}} -
+

{{place.sname}}

{{place.display_name}} -
+

{{place.sname}}

{{place.display_name}} -
+

{{journey_data.main[journey_step_data.section].hotel.sname}}

{{journey_data.main[journey_step_data.section].hotel.display_name}} -
+

{{place.sname}}

{{place.display_name}} - {{place.notes}} + {{place.notes}} @@ -392,7 +392,7 @@

{{place.sname}}

{{place.display_name}} - {{place.notes}} + {{place.notes}}
@@ -402,7 +402,7 @@

{{place.sname}}

{{place.display_name}} - {{place.notes}} + {{place.notes}}