Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pancham1603 committed Dec 2, 2023
1 parent e995871 commit f7efbd7
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions apps/validation/static/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,36 +138,6 @@ function fetch_data(dump) {
}


function fetch_data(dump) {
urls = ""
$.ajax({
method: "POST",
url: urls,
data:dump,
dataType: "json",
timeout: 12000,
success: function (response) {
let res = response.status;
if (res) {
updateProfile(response.user);
updateUserPass(response.user_pass, response.user, response.task);
if (response.user_pass.pass_id) {
document.getElementById('pass-card').style.backgroundColor = '#90EE90'
} else [
document.getElementById('pass-card').style.backgroundColor = '#FF7F7F'
]
toastr.success(response.message);
}
else {
toastr.error(response.message);
}
},
error: function (xhr, textStatus, errorThrown) {
toastr.error("Something went wrong, please try again later");
}
});
}

function checkIn(registration_number) {
urls = "checkin/"
$.ajax({
Expand Down

0 comments on commit f7efbd7

Please sign in to comment.