move modals to form validation

This commit is contained in:
2022-01-19 03:04:59 +03:00
parent 7a6cd84ce3
commit dc882b74bf
5 changed files with 60 additions and 54 deletions

View File

@ -37,7 +37,7 @@ function loadTypes(url, selector) {
}
function setupFormClear(dialog, reset) {
dialog.on("shown.bs.modal", function () {
dialog.on("hide.bs.modal", function () {
$(this).find("form").trigger("reset");
$(this).find("table").bootstrapTable("removeAll");
if (reset) {