From 29b0070260e67241b0fc57cd041cf4e495206e47 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 8 Apr 2024 10:47:54 +0300 Subject: [PATCH] add reload page --- release-05-04-24/asuinventory | 1 + static/js/allmatc.js | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 160000 release-05-04-24/asuinventory diff --git a/release-05-04-24/asuinventory b/release-05-04-24/asuinventory new file mode 160000 index 0000000..2e9cc91 --- /dev/null +++ b/release-05-04-24/asuinventory @@ -0,0 +1 @@ +Subproject commit 2e9cc918d59a44ea26fa46510646c3a26e63cb27 diff --git a/static/js/allmatc.js b/static/js/allmatc.js index 10c7c82..5a15a9b 100644 --- a/static/js/allmatc.js +++ b/static/js/allmatc.js @@ -154,13 +154,13 @@ $('#modalsavetodb').click(function(){ success: function(){ $('#getmodal').modal('hide') - getAllData(); vednumber.value = ''; kolvo.value = ''; balancenumber.value = ''; matcen.value = ''; rasp.value = ''; changeddata = []; + window.location.reload(); }, }) @@ -219,6 +219,7 @@ $('#modal2savetodb').click(function(){ rasp.value = ''; $('#addmodal').modal('hide') + window.location.reload() }, @@ -252,4 +253,8 @@ $('#modal2close').click(function(){ -} ) \ No newline at end of file +} ) + +$('#modal2').on('hidden.bs.modal', function () { + location.reload(); + }) \ No newline at end of file