From 9b31c43e1309edf80993b62580e039e2f438cd34 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 4 Dec 2014 18:45:57 +0200 Subject: Partial #162 --- src/rz_core.js | 1 + src/view/node_info.js | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rz_core.js b/src/rz_core.js index 98d2d61f..13d298b2 100644 --- a/src/rz_core.js +++ b/src/rz_core.js @@ -712,6 +712,7 @@ function showNodeInfo(d, i) { } graph.editType(d.id,d.type,$('#edittype').val()); graph.editURL(d.id, d.type, $('#editurl').val()); + graph.editStatus(d.id, d.type, $('#editstatus').val()); update_view__graph(true); return false; }); diff --git a/src/view/node_info.js b/src/view/node_info.js index 7bf1540b..f798b387 100644 --- a/src/view/node_info.js +++ b/src/view/node_info.js @@ -2,14 +2,19 @@ define(['jquery', 'view/helpers', 'view/internal'], function($, view_helpers, internal) { function show(d) { + var editURL = ''; + internal.edit_tab.show('node'); if (d.type === "third-internship-proposal") { - $('.info').html('Name: ' + d.name + '




'); + $('.info').html('Name: ' + d.name + '




'); } else if(d.type=== "chainlink"){ $('.info').html('Name: ' + d.name + '
'); }else{ - $('.info').html('Name: ' + d.name + '


'); + if (d.type !== 'skill' && d.type !== 'interest') { + editURL = '' + } + $('.info').html('Name: ' + d.name + '

' + editURL + '
'); } $('.info').css("border-color", view_helpers.customColor(d.type)); @@ -32,6 +37,8 @@ function show(d) { $('#editurl').val(d.url); + $('#editstatus').val(d.status); + if (d.type === "third-internship-proposal") { $('#editstartdate').val(d.start); $('#editenddate').val(d.end); -- cgit v1.3.1