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.

Page ID on change page event
#2
New firmware has showplan event which can be used to get new plan id when it changes.
Use this custom JS, it attaches to all elements with back class and replaces click handler with "back" action.
Code:
$(function() {
  var curr_id = currentPlanId, prev_id;

  $('body').on('showplan', function(event, new_id) {
    prev_id = curr_id;
    curr_id = new_id;
  });
  
  $('.back').off('vclick').on('vclick', function() {
    showPlan(prev_id);
  });
});
Reply


Messages In This Thread
Page ID on change page event - by adiaz - 13.07.2020, 08:04
RE: Page ID on change page event - by admin - 13.07.2020, 08:14
RE: Page ID on change page event - by adiaz - 13.07.2020, 12:37

Forum Jump: