aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2022-05-27 14:42:46 +0300
committerBonfaceKilz2022-05-27 15:17:52 +0300
commitf89d32b913472f14bad438c764a4e4bcdc71e30c (patch)
treee1db75b8787094beb394097b3315d05947563d84 /wqflask
parent51668f56f7a0eb88fa9247a78ed968201994601e (diff)
downloadgenenetwork2-f89d32b913472f14bad438c764a4e4bcdc71e30c.tar.gz
Don't make a POST if there's a blank form-element
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/case_attributes.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/case_attributes.html b/wqflask/wqflask/templates/case_attributes.html
index fad3dd94..d1669761 100644
--- a/wqflask/wqflask/templates/case_attributes.html
+++ b/wqflask/wqflask/templates/case_attributes.html
@@ -287,10 +287,12 @@
$(this).parents("tr").find(".add, .edit").toggle();
$(".add-new").removeAttr("disabled");
}
+ else {
+ return;
+ }
let nameNode = $(this).parents("tr").find(".name");
let descNode = $(this).parents("tr").find(".description");
-
let name = nameNode.html();
let desc = descNode.html();
let nodeId = $(this).parents("tr").data("id");