style(web): simplify tdb_query() func

This commit is contained in:
2023-02-12 15:51:16 +03:00
parent e8e32c70f0
commit 6f0359e99f
5 changed files with 25 additions and 15 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ if (db_name == null) {
$(document).on("click", "#btn-save", function (e) {
e.preventDefault();
let resp = tdb_query(db_name, 4, "");
let resp = tdb_query(db_name, 4);
if (resp.status) {
alert("Successfully saved!");
} else {
@@ -18,7 +18,7 @@ $(document).on("click", "#btn-discard", function (e) {
if (!confirm("All unsaved changes will be lost permanently. Are you sure?")) {
return;
}
let resp = tdb_query(db_name, 2, "");
let resp = tdb_query(db_name, 2);
if (resp.status) {
alert("Successfully reloaded database!");
} else {