15.07.2020, 06:54
This happens because the page is unloaded from memory and browser reloads the page from scratch.
You can use this Custom JS to remember current plan and show saved plan on every load. Plan id is store locally in browser storage. You need a recent firmware for this to work.
You can use this Custom JS to remember current plan and show saved plan on every load. Plan id is store locally in browser storage. You need a recent firmware for this to work.
Code:
$(function() {
var id = localStorage.getItem('planid');
if (id) {
showPlan(id);
}
$('body').on('showplan', function(event, id) {
localStorage.setItem('planid', id);
});
});