From fe388c7dbe6744c9ffa60661a7a54d1ea2fb70b1 Mon Sep 17 00:00:00 2001 From: 0xCA Date: Sat, 18 Nov 2023 16:35:17 +0500 Subject: [PATCH] do not reload the clients page after sending a config --- templates/clients.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/templates/clients.html b/templates/clients.html index cc08595..75291b2 100644 --- a/templates/clients.html +++ b/templates/clients.html @@ -702,8 +702,6 @@ Wireguard Clients success: function(resp) { $("#modal_email_client").modal('hide'); toastr.success('Sent email to client successfully'); - // Refresh the home page (clients page) after sending email successfully - location.reload(); }, error: function(jqXHR, exception) { const responseJson = jQuery.parseJSON(jqXHR.responseText); @@ -727,8 +725,6 @@ Wireguard Clients success: function(resp) { $("#modal_telegram_client").modal('hide'); toastr.success('Sent config via telegram to client successfully'); - // Refresh the home page (clients page) after sending email successfully - location.reload(); }, error: function(jqXHR, exception) { const responseJson = jQuery.parseJSON(jqXHR.responseText);