silverstripe-userforms/javascript/UserForm_frontend.js

10 lines
204 B
JavaScript
Raw Normal View History

jQuery(function($) {
/**
* Make sure the form does not expire on the user.
*/
setInterval(function() {
// Ping every 3 mins.
$.ajax({url: "UserDefinedForm_Controller/ping"});
}, 180*1000);
});