We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c178e49 + c5d5c63 commit e665618Copy full SHA for e665618
dist/bootstrap-session-timeout.js
@@ -95,6 +95,18 @@
95
if (!opt.ignoreUserActivity) {
96
$(document).on('keyup mouseup mousemove touchend touchmove', function() {
97
startSessionTimer();
98
+
99
+ // If they moved the mouse not only reset the counter
100
+ // but remove the modal too!
101
+ if( $('#session-timeout-dialog').length > 0 &&
102
+ $('#session-timeout-dialog').data('bs.modal').isShown )
103
+ {
104
+ // http://stackoverflow.com/questions/11519660/twitter-bootstrap-modal-backdrop-doesnt-disappear
105
+ $('#session-timeout-dialog').modal('hide');
106
+ $('body').removeClass('modal-open');
107
+ $('div.modal-backdrop').remove();
108
109
+ }
110
});
111
}
112
0 commit comments