diff options
| author | Alon Levy <alon@pobox.com> | 2014-11-11 15:57:42 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-11 19:48:22 +0200 |
| commit | 06101d59dc1d67f0bb4194425b46f153f8a97c7e (patch) | |
| tree | c374b6f06be0d4d8392630082bda8821916b6007 /scripts/view/node_info.js | |
| parent | 73ef7c098053592db020bc3691180c49e5f45cf6 (diff) | |
put .info into a tab
not using jquery tab since I just want an abstraction for 'show just
one' which is simpler, no labels.
Diffstat (limited to 'scripts/view/node_info.js')
| -rw-r--r-- | scripts/view/node_info.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/view/node_info.js b/scripts/view/node_info.js index 347fbb24..f4d67c7f 100644 --- a/scripts/view/node_info.js +++ b/scripts/view/node_info.js @@ -1,8 +1,8 @@ -define(['jquery', 'view/helpers'], -function($, view_helpers) { +define(['jquery', 'view/helpers', 'view/internal'], +function($, view_helpers, internal) { function show(d) { - $('.info').fadeIn(300); + internal.edit_tab.show('node'); if (d.type === "deliverable") { $('.info').html('Name: ' + d.id + '<br/><form id="editbox"><label>Type:</label><select id="edittype"><option value="person">Person</option><option value="project">Project</option><option value="skill">Skill</option><option value="deliverable">Deliverable</option><option value="objective">Objective</option></select><br/><label>Status</label><select id="editstatus"><option value="waiting">Waiting</option><option value="current">Current</option><option value="done">Done</option></select><br/><label>Start date:</label><input id="editstartdate"/></br><label>End date:</label><input id="editenddate"/></br><button>Save</button><button id="deletenode">Delete</button></form>'); @@ -40,7 +40,7 @@ function show(d) { function hide() { - $('.info').fadeOut(300); + internal.edit_tab.hide(); } function on_submit(f) |
