diff options
author | BonfaceKilz | 2022-05-27 14:42:46 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-05-27 15:17:52 +0300 |
commit | f89d32b913472f14bad438c764a4e4bcdc71e30c (patch) | |
tree | e1db75b8787094beb394097b3315d05947563d84 | |
parent | 51668f56f7a0eb88fa9247a78ed968201994601e (diff) | |
download | genenetwork2-f89d32b913472f14bad438c764a4e4bcdc71e30c.tar.gz |
Don't make a POST if there's a blank form-element
-rw-r--r-- | wqflask/wqflask/templates/case_attributes.html | 4 |
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"); |