Skip to content
This repository has been archived by the owner on Apr 21, 2019. It is now read-only.

Allow repeated calling of $.timeoutDialog() #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simschla
Copy link

When repeatedly calling $.timeoutDialog(), the counter for the timeout is reset.

As a convenience, the options are stored between calls, so the second call does not have to provide all options already provided in the first call, if one just wants to reset the timer.

- reuse last options on repeated call
- clear already running interval
@simschla
Copy link
Author

I've created a js fiddle demonstrating the behavior: https://jsfiddle.net/simschla/boucgomg/11/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant