This commit is contained in:
Leo
2024-01-21 14:31:45 +08:00
9 changed files with 26 additions and 9 deletions

View File

@ -253,4 +253,4 @@ form
.top-nav .navbar-toggler:hover{
color: #4eae3a;
border-color: #4eae3a;
}
}

View File

@ -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