From dfb9a524b49f88026cf9ae9ff180fe0d3dbb8a5e Mon Sep 17 00:00:00 2001 From: newtbot Date: Sun, 21 Jan 2024 04:28:16 +0800 Subject: [PATCH] blah --- consumerWebsite/public/js/app.js | 2 +- consumerWebsite/routes/render.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/consumerWebsite/public/js/app.js b/consumerWebsite/public/js/app.js index 1e3d235..7682959 100644 --- a/consumerWebsite/public/js/app.js +++ b/consumerWebsite/public/js/app.js @@ -256,7 +256,7 @@ app.auth = (function (app) { }; })(app); -//ajax form submit +//ajax form submit and pass to api function formAJAX(btn, del) { event.preventDefault(); // avoid to execute the actual submit of the form. var $form = $(btn).closest("[action]"); // gets the 'form' parent diff --git a/consumerWebsite/routes/render.js b/consumerWebsite/routes/render.js index 9bd1783..ead217a 100644 --- a/consumerWebsite/routes/render.js +++ b/consumerWebsite/routes/render.js @@ -69,8 +69,8 @@ router.get('/profile', function(req, res, next) { //forgot password page router.get('/forgotPassword', function(req, res, next) { res.render('forgotPassword'); -}); +}); //contact page router.get('/contact', function(req, res, next) {