From d617b826e6b2c72213938f7b87d68139465b7301 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 6 Aug 2014 18:20:14 +0300 Subject: rhizicore.js: showInfo: uncommented url in file? comment it --- scripts/rhizicore.js | 91 ++++++++++++++++++++++++++-------------------------- 1 file changed, 45 insertions(+), 46 deletions(-) (limited to 'scripts') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 252abe52..fcb4f7a3 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -770,63 +770,62 @@ function deliverableTest() { } +// http: //open.spotify.com/track/2ClxMaiC6wPP93pA0Ql0Vz +function showInfo(d, i) { + if (d.state !== "chosen") { + graph.highlightNode(d.id, null); + $('.info').fadeIn(300); + + if (d.type === "deliverable") { + $('.info').html('Name: ' + d.id + '
'); + } else { + $('.info').html('Name: ' + d.id + '
'); + } -http: //open.spotify.com/track/2ClxMaiC6wPP93pA0Ql0Vz - function showInfo(d, i) { - if (d.state !== "chosen") { - graph.highlightNode(d.id, null); - $('.info').fadeIn(300); + $('.info').css("border-color", customColor(d.type)); - if (d.type === "deliverable") { - $('.info').html('Name: ' + d.id + '
'); - } else { - $('.info').html('Name: ' + d.id + '
'); - } - - $('.info').css("border-color", customColor(d.type)); + $("#editenddate").datepicker({ + inline: true, + showOtherMonths: true, + dayNamesMin: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + }); - $("#editenddate").datepicker({ - inline: true, - showOtherMonths: true, - dayNamesMin: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - }); + $("#editstartdate").datepicker({ + inline: true, + showOtherMonths: true, + dayNamesMin: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + }); - $("#editstartdate").datepicker({ - inline: true, - showOtherMonths: true, - dayNamesMin: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - }); + $('#editdescription').val(d.type); - $('#editdescription').val(d.type); + $('#editstatus').val(d.status); - $('#editstatus').val(d.status); + if (d.type === "deliverable") { + $('#editstartdate').val(d.start); + $('#editenddate').val(d.end); + } - if (d.type === "deliverable") { - $('#editstartdate').val(d.start); - $('#editenddate').val(d.end); - } + $("#editbox").submit(function() { + if (d.type === "deliverable") graph.editDates(d.id, null, new Date($("#editstartdate").val()), new Date($("#editenddate").val())); - $("#editbox").submit(function() { - if (d.type === "deliverable") graph.editDates(d.id, null, new Date($("#editstartdate").val()), new Date($("#editenddate").val())); - - graph.update(); - return false; - }); + graph.update(); + return false; + }); - $("#deletenode").click(function() { - if (confirm('This node and all its connections will be deleted, are you sure?')) { - graph.removeNode(d.id, null); - } + $("#deletenode").click(function() { + if (confirm('This node and all its connections will be deleted, are you sure?')) { + graph.removeNode(d.id, null); + } - graph.update(); - }); - } else { - graph.removeHighlight(); - $('.info').fadeOut(300); - } - graph.update(); + graph.update(); + }); + } else { + graph.removeHighlight(); + $('.info').fadeOut(300); + } + graph.update(); - } +} function mousedown() { $('.editinfo').css('top', -100); -- cgit v1.3.1