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

Allow repeated calling of $.timeoutDialog()#11

Open
simschla wants to merge 1 commit intorigoneri:masterfrom
simschla:master
Open

Allow repeated calling of $.timeoutDialog()#11
simschla wants to merge 1 commit intorigoneri:masterfrom
simschla:master

Conversation

@simschla
Copy link
Copy Markdown

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
Copy Markdown
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