Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses ajaxSuccess to restart timers after any ajax request #4

Closed
wants to merge 2 commits into from

Conversation

rthbound
Copy link
Contributor

@rthbound rthbound commented Jun 4, 2013

Resolves #2 using jQuery.ajaxSuccess() to reset the timers after any ajax request.

  - ajaxStop event fires even if the ajax request has been cancelled
@rthbound
Copy link
Contributor Author

rthbound commented Jun 4, 2013

Using jQuery.ajaxSuccess() may actually resolve #1 as well... what do you think @mhenke & @travishorn

@rthbound
Copy link
Contributor Author

rthbound commented Jun 4, 2013

This PR was premature, apologies

@rthbound rthbound closed this Jun 4, 2013
@nickm324
Copy link

Is there any solution to the reset the timers?

I attempted to use your contributed code using ajaxSuccess but there are two issues.

  1. in the first line you have $("document").ajaxSuccess and the quotation marks around document are breaking this in IE and Chrome.
  2. the call to controlRedirTimer and controlDialogTimer fail because they are still out of scope and throw error 'controlRedirTimer' is undefined'

Is there any way to reset the the timer after an ajax call or by calling the functions directly globally.
Is there are way to make the controlRedirTimer and controlDialogTimer publicly accessible?

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

Successfully merging this pull request may close these issues.

Reset dialog timeout
2 participants