From c72b5cc338111d618cad82a2235e0616c4f211c5 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Thu, 8 Oct 2026 16:00:09 +0530 Subject: [PATCH] refactor(abdm): unify into a single Refresh link in consent request history --- app/Views/billing/Patient_Profile_Opd_V.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/app/Views/billing/Patient_Profile_Opd_V.php b/app/Views/billing/Patient_Profile_Opd_V.php index 8b3a744..0fcece8 100644 --- a/app/Views/billing/Patient_Profile_Opd_V.php +++ b/app/Views/billing/Patient_Profile_Opd_V.php @@ -353,9 +353,6 @@ if ($patientPhotoPath === '') { -
- -
@@ -1684,16 +1681,7 @@ $(function() { return html; } - var abdmLoadingDocs = false; function loadAbdmDocs() { - if (abdmLoadingDocs) { - return; - } - abdmLoadingDocs = true; - var $btn = $('#btnLoadAbdmDocs'); - var origText = $btn.text(); - $btn.prop('disabled', true).html('Refreshing...'); - var q = ($('#abdmDocSearch').val() || '').toString().trim(); var url = abdmDocumentsUrl + '?limit=200'; if (q !== '') { @@ -1711,10 +1699,6 @@ $(function() { }) .catch(function(err) { setAbdmStatus('ABDM load failed: ' + (err.message || err), true); - }) - .finally(function() { - abdmLoadingDocs = false; - $btn.prop('disabled', false).text(origText || 'Refresh list'); }); } @@ -1802,6 +1786,7 @@ $(function() { $(document).off('click.abdmOpd', '#btnRefreshAbdmRequests').on('click.abdmOpd', '#btnRefreshAbdmRequests', function() { loadAbdmConsentRequests(); + loadAbdmDocs(); }); $(document).off('click.abdmOpd', '#btnCheckLiveAbdmStatus').on('click.abdmOpd', '#btnCheckLiveAbdmStatus', function() {