summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-08-19 17:35:42 +0300
committerAlon Levy <alon@pobox.com>2014-08-19 17:35:42 +0300
commit906ddaaaed997061377e9deb3f3b0930c29ab0a2 (patch)
tree530e35ef71e50f8bde1dfb29de3d6627e72e1ab1 /scripts
parent3773126a12ae098e416b78adb66fbcf35cbad9ea (diff)
add parenthasis around a single line if block
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rhizicore.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 1feafa31..7c9ed274 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -925,8 +925,9 @@ function showInfo(d, i) {
}
$("#editbox").submit(function() {
- if (d.type === "deliverable")
+ if (d.type === "deliverable") {
graph.editDates(d.id, null, new Date($("#editstartdate").val()), new Date($("#editenddate").val()));
+ }
graph.editType(d.id,d.type,$('#edittype').val());
graph.editURL(d.id, d.type, $('#editurl').val());
graph.update();