| | |
| | | document.getElementById("btnAttiva").onclick = setCookies; |
| | | document.getElementById("btnReset").onclick = delCookies; |
| | | |
| | | function callAjax(url, withReload = true) { |
| | | function callAjax(url) { |
| | | document.getElementById('vola-loading').style.display = 'block'; |
| | | let profile = document.getElementById('sel_attiva').value; |
| | | $.ajax({ |
| | |
| | | data: JSON.stringify({prof: profile}), |
| | | }).done(function (msg) { |
| | | document.getElementById('vola-loading').style.display = 'none'; |
| | | if (withReload) { |
| | | location.href = location.origin + "/get"; |
| | | } |
| | | }).fail(function() { |
| | | document.getElementById('vola-loading').style.display = 'none'; |
| | | location.href = location.origin + "/get"; |
| | | }); |
| | | } |
| | | |