File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 278
278
mouseDebounce : 30 , //How many seconds between extending the session when the mouse is moved (instead of extending a billion times within 5 seconds)
279
279
onMouseMove : function ( timeout ) {
280
280
//request the session extend page
281
- $ . get ( timeout . options . extendUrl , function ( ) {
282
- //reset expiration
283
- timeout . resetExpiration ( ) ;
281
+ $ . get ( {
282
+ url : timeout . options . extendUrl ,
283
+ cache : false ,
284
+ success : function ( ) {
285
+ //reset expiration
286
+ timeout . resetExpiration ( ) ;
287
+ }
284
288
} ) ;
285
289
} , //Override the standard $.get() request that uses the extendUrl with your own function.
286
290
extendUrl : '/dashboard' , //URL to request in order to extend the session.
324
328
//override the click to extend button callback
325
329
onClickExtend : function ( timeout ) {
326
330
/* Request dashboard to increase session */
327
- $ . get ( timeout . options . extendUrl ) ;
331
+ $ . get ( {
332
+ url : timeout . options . extendUrl ,
333
+ cache : false
334
+ } ) ;
328
335
timeout . resetExpiration ( ) ;
329
336
} ,
330
337
//override the timeout function if you'd like
You can’t perform that action at this time.
0 commit comments