From f7efbd7bfae1f0462864f6408e569a4e7c22e336 Mon Sep 17 00:00:00 2001 From: Pancham Agarwal Date: Sat, 2 Dec 2023 14:25:29 +0530 Subject: [PATCH] minor bug fix --- apps/validation/static/info.js | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/apps/validation/static/info.js b/apps/validation/static/info.js index 1cf5cf6..eddf7da 100644 --- a/apps/validation/static/info.js +++ b/apps/validation/static/info.js @@ -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({