diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-21 18:07:11 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-21 19:10:34 +0200 |
| commit | 94cfdc788bf1a9622632e5ed5b3ea20c84bd53eb (patch) | |
| tree | d15a226551037d56392c9d03b4305e265f6566ef | |
| parent | 7e468367e6f8710754f0b27f3a7de4e5ca50c871 (diff) | |
client: node_edit: show description for everything
| -rw-r--r-- | res/templates/index.html | 2 | ||||
| -rw-r--r-- | src/client/view/node_info.js | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/res/templates/index.html b/res/templates/index.html index ff051fdd..c24abf2f 100644 --- a/res/templates/index.html +++ b/res/templates/index.html @@ -71,8 +71,8 @@ </div> <div id="startdate"><label class="info-card-attr">Start date</label><input id="editstartdate"/></br></div> <div id="enddate"><label class="info-card-attr">End date:</label><input id="editenddate"/></div> - <div id="desc"><label>Description</label><input id="editdescription"/></div> <div id="url"><p class="info-card-attr">URL</p><p class="info-card-attr-val info-card-url"><input id="editurl"></p></div> + <div id="description"><label>Description</label><textarea id="editdescription"></textarea></div> <hr> <button id="edit-node-dialog__save" class="btn-regular btn-regular-outline">Save</button> <button id="edit-node-dialog__delete" class="btn-regular btn-regular-outline">Delete</button> diff --git a/src/client/view/node_info.js b/src/client/view/node_info.js index 9393d9e1..3251bb21 100644 --- a/src/client/view/node_info.js +++ b/src/client/view/node_info.js @@ -35,13 +35,13 @@ function show(d) { f = false, t = true, visible = { - "third-internship-proposal": [t, t, t, f, f], - "chainlink": [f, f, f, f, f], - "skill": [f, f, f, f, t], - "interest": [f, f, f, f, t], - "_defaults": [f, f, f, f, t], + "third-internship-proposal": [t, t, t, t, f], + "chainlink": [f, f, f, t, f], + "skill": [f, f, f, t, t], + "interest": [f, f, f, t, t], + "_defaults": [f, f, f, t, t], }, - fields = ["#status", "#startdate", "#enddate", "#desc", "#url"], + fields = ["#status", "#startdate", "#enddate", "#description", "#url"], flags = visible.hasOwnProperty(d.type) ? visible[d.type] : visible._defaults, i; |
