style(web): simplify tdb_query() func
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user