mirror of
https://github.com/ngoduykhanh/wireguard-ui
synced 2024-06-11 02:12:25 +02:00
do not reload the clients page after sending a config
This commit is contained in:
parent
0abdb4564e
commit
fe388c7dbe
|
@ -702,8 +702,6 @@ Wireguard Clients
|
||||||
success: function(resp) {
|
success: function(resp) {
|
||||||
$("#modal_email_client").modal('hide');
|
$("#modal_email_client").modal('hide');
|
||||||
toastr.success('Sent email to client successfully');
|
toastr.success('Sent email to client successfully');
|
||||||
// Refresh the home page (clients page) after sending email successfully
|
|
||||||
location.reload();
|
|
||||||
},
|
},
|
||||||
error: function(jqXHR, exception) {
|
error: function(jqXHR, exception) {
|
||||||
const responseJson = jQuery.parseJSON(jqXHR.responseText);
|
const responseJson = jQuery.parseJSON(jqXHR.responseText);
|
||||||
|
@ -727,8 +725,6 @@ Wireguard Clients
|
||||||
success: function(resp) {
|
success: function(resp) {
|
||||||
$("#modal_telegram_client").modal('hide');
|
$("#modal_telegram_client").modal('hide');
|
||||||
toastr.success('Sent config via telegram to client successfully');
|
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) {
|
error: function(jqXHR, exception) {
|
||||||
const responseJson = jQuery.parseJSON(jqXHR.responseText);
|
const responseJson = jQuery.parseJSON(jqXHR.responseText);
|
||||||
|
|
Loading…
Reference in a new issue