javascript - How to close all active bootstrap modals on session timeout? -
i need make call when user idle , passes session time out close bootstrap modals. modals being active dependent on user doing @ time that's encompassing.
i tried:
$('.modal').modal('toggle');
when time out occurs modals still there.
use following code:
$('.modal').modal('hide');
also if if modal hidden can this:
$('.modal').on('hidden', function () { // write code });
Comments
Post a Comment