Don't scroll to main section on initial page load

This commit is contained in:
Björn Fromme
2018-09-22 11:59:53 +02:00
parent cc7138bbb7
commit 501df008bf
@@ -81,10 +81,12 @@
}, 'json');
},
loadDatesView () {
loadDatesView (scroll = true) {
this.loadDates();
this.activeSection = 'dates';
this.scrollToMain();
if (scroll) {
this.scrollToMain();
}
},
loadPriceTable (dateUid) {
this.loading = true;
@@ -137,7 +139,7 @@
if (this.hotelFirst) {
this.showHtml('hotel', false);
} else {
this.loadDatesView();
this.loadDatesView(false);
}
});
}