diff --git a/public/js/main.js b/public/js/main.js index 0a282de..c1278c0 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -224,10 +224,7 @@ const app = new Vue({ this.journey_data.main.splice(idx,1); }, toggle_section_vis: function(idx){ - this.journey_data.main[idx].hidden = !this.journey_data.main[idx].hidden; - }, - get_section_vis: function(idx){ - return !this.journey_data.main[idx].hidden + this.journey_data.visible = idx; }, search_nominatim: function(txt,f){ if(txt==""){ @@ -274,6 +271,8 @@ const app = new Vue({ }, import_data:function(){ this.journey_data = Object.assign({}, JSON.parse(toDecoded(this.impexp))); + + this.journey_data.visible = this.journey_data.visible || -1; }, export_data:function(){ this.impexp = toEncoded(JSON.stringify(this.journey_data)); diff --git a/public/template/journey.html b/public/template/journey.html index f176b08..2e9c136 100644 --- a/public/template/journey.html +++ b/public/template/journey.html @@ -47,7 +47,7 @@
-
+