praiadeseselle/wire/modules/Session/SessionHandlerDB/ProcessSessionDB.js

17 lines
499 B
JavaScript
Raw Permalink Normal View History

2022-03-08 15:55:41 +01:00
var refreshSessionTimer = null;
function refreshSessionList() {
var $icon = $("#submit_session i, #submit_session_copy i");
$icon.removeClass('fa-refresh').addClass('fa-spin fa-spinner');
$.get("./", function (data) {
$("#SessionList").html(data);
refreshSessionTimer = setTimeout('refreshSessionList()', 5000);
$icon.removeClass('fa-spin fa-spinner').addClass('fa-refresh');
});
}
$(document).ready(function() {
refreshSessionTimer = setTimeout('refreshSessionList()', 5000);
});