diff options
| author | Alon Levy <alon@pobox.com> | 2015-05-04 12:38:55 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-05-04 12:42:19 +0300 |
| commit | 165381b79c54b1626db082ae45311ac3ceb0ffc9 (patch) | |
| tree | 6ec2cfc612b6ce1bda4998b8b71b2ad1df9d1814 /src/client/model | |
| parent | a09762e85358ae57f62d2387a05572c558f7326f (diff) | |
client: show node titles, not internal node types. fix #537
Diffstat (limited to 'src/client/model')
| -rw-r--r-- | src/client/model/types.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/model/types.js b/src/client/model/types.js index bb534d00..531d9236 100644 --- a/src/client/model/types.js +++ b/src/client/model/types.js @@ -5,7 +5,8 @@ function(_, util, domain_types) var all_attributes, type_attributes = _.object(domain_types.type_attributes), nodetypes = _.map(domain_types.type_attributes, 0), - attribute_titles = domain_types.attribute_titles; + attribute_titles = domain_types.attribute_titles, + node_titles = _.object(nodetypes, _.map(domain_types.type_attributes, function(v) { return v[1].title; })); if (undefined === type_attributes['_defaults']) { type_attributes['_defaults'] = { @@ -31,6 +32,7 @@ return ( }, all_attributes: all_attributes, attribute_titles: attribute_titles, + node_titles: node_titles, }); } ) |
