This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Disable autoredirect to main page.
#2
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.
Code:
$(function() {
  var id = localStorage.getItem('planid');
  if (id) {
    showPlan(id);
  }

  $('body').on('showplan', function(event, id) {
    localStorage.setItem('planid', id);
  });
});
Reply


Messages In This Thread
RE: Disable autoredirect to main page. - by admin - 15.07.2020, 06:54

Forum Jump: