Merge pull request #56 from int2001/contesting_fix_reset

Fix racecondition at contesting
This commit is contained in:
HB9HIL
2024-01-06 10:48:45 +01:00
committed by GitHub

View File

@@ -9,7 +9,14 @@ $(document).ready(async function () {
});
// Resets the logging form and deletes session from database
function reset_contest_session() {
async function reset_contest_session() {
await $.ajax({
url: base_url + 'index.php/contesting/deleteSession',
type: 'post',
success: function (data) {
}
});
$('#name').val("");
$('.callsign-suggestions').text("");
$('#callsign').val("");
@@ -29,13 +36,6 @@ function reset_contest_session() {
$(".contest_qso_table_contents").empty();
$('#copyexchangetodok').prop('checked', false);
$.ajax({
url: base_url + 'index.php/contesting/deleteSession',
type: 'post',
success: function (data) {
}
});
}
// Storing the contestid in contest session