Skip to content

Commit 0d75ce4

Browse files
authored
Merge pull request #19 from HTMLGuyLLC/HTMLGuyLLC-patch-1
Update README.md
2 parents 16baf2e + 09e76ad commit 0d75ce4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,11 @@ $.jTimeout().setExpiration(1440);
9191
### Recommended reset usage
9292
Everytime you request a page that extends a user's session, use the reset function:
9393
```javascript
94-
$.get('/my-ajax-page', function(data){
94+
$(document).ajaxStop(function(){
9595
$.jTimeout().reset();
9696
//handle ajax response
9797
});
98+
//warning: If $.ajax() or $.ajaxSetup() is called with the global option set to false, the .ajaxStop() method will not fire.
9899
```
99100
100101
### If you want to use your own modal

0 commit comments

Comments
 (0)