This topic contains 4 replies, has 2 voices, and was last updated by Sean Sean 1 week, 3 days ago.

User idle timeout problem when there are two modals in page

  • Jigar
    Jigar
    Participant

    Posts: 25
    Member Reply #11561

    Hello,

    I have problem with setting this plugin,
    You demo and my page is working fine, when there is only one modal in page,

    But in my other pages, there are two different modals , both with different id, but when there are two modals in page and when timeout occur, i click on “Yes keep working” in pop up modal, modal will get hidden but timer does not stop and it also shows timer in page title, and after 10 second it will get log out(even i have clicked on Keep working),

    This setup working absolutely fine when page have only one modal,

    Can you help on this?

    Thanks,

    Sean
    Sean
    Keymaster

    Posts: 3913
    Support Staff Reply #11578

    Hi,

    Thanks for your feedback. Seems this is an original bug of the plugin. We will check it further and try to find a workaround. Also we will bug report to the plugin authors and wait the official bug fix. For more info please check the plugin’s official documentation.

    Thanks.

    Jigar
    Jigar
    Participant

    Posts: 25
    Member Reply #11586

    Hi Sean,

    I appreciate your quick workaround here, as i have implemented this in project and found this big bugs with two modals on page,

    thanks for all your help

    Jigar
    Jigar
    Participant

    Posts: 25
    Member Reply #11587

    Hello Sean,

    I found solution for this problem,

    In you demo code, resume argument is set is last button of modal content, which will not work for two modals in page, and modal content class will be there in all modals,

    $.idleTimeout(‘#idle-timeout-dialog’, ‘.modal-content button:last‘, {

    I have set it to ID of button and it is working fine,

    $.idleTimeout(‘#idle-timeout-dialog’, ‘#idle-timeout-dialog-keepalive‘, {

    Thanks,

    Sean
    Sean
    Keymaster

    Posts: 3913
    Support Staff Reply #11641

    Hi :),

    Thanks for sharing this. We will try it and if works well we will add it in the next update.

    Thanks.

You must be logged in to reply to this topic.