From 906ddaaaed997061377e9deb3f3b0930c29ab0a2 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 19 Aug 2014 17:35:42 +0300 Subject: add parenthasis around a single line if block --- scripts/rhizicore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- cgit v1.3.1