From 8e5fcb6944d723b7fb77d046596089e1246ffd2c Mon Sep 17 00:00:00 2001 From: "Jahleel A." Date: Thu, 14 Mar 2024 00:31:35 +0000 Subject: [PATCH] Added values to all call sites of ajaxReq.send() --- www/template/dist/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/template/dist/js/main.js b/www/template/dist/js/main.js index b63dc7a5..f9d18700 100644 --- a/www/template/dist/js/main.js +++ b/www/template/dist/js/main.js @@ -178,7 +178,7 @@ var ajaxReq = function () { var class_after_success = null; - var send = function (redirectOnFail = true) { + var send = function (redirectOnFail) { if (form !== null) form_data = new FormData(form[0]); if (alert_bl !== null) { @@ -444,7 +444,7 @@ var ajaxReq = function () { else error_ajax = 1; //form.submit(); - send(); + send(true); } return false; @@ -478,7 +478,7 @@ var ajaxReq = function () { ajax_content = true; mch_ajsend(send_but); - send(); + send(true); // close left menu for mobile devices var navbar = $('#navbar-collapse');