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/textanalysis.ui.js | |
| parent | a09762e85358ae57f62d2387a05572c558f7326f (diff) | |
client: show node titles, not internal node types. fix #537
Diffstat (limited to 'src/client/textanalysis.ui.js')
| -rw-r--r-- | src/client/textanalysis.ui.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/textanalysis.ui.js b/src/client/textanalysis.ui.js index 2dae7397..0e126d9b 100644 --- a/src/client/textanalysis.ui.js +++ b/src/client/textanalysis.ui.js @@ -1,7 +1,7 @@ "use strict" -define(['jquery', 'Bacon', 'consts', 'rz_bus', 'rz_core', 'textanalysis', 'util', 'view/textanalyser_input'], -function($, Bacon , consts , rz_bus , rz_core , textanalysis , util, textanalyser_input) { +define(['jquery', 'Bacon', 'consts', 'rz_bus', 'rz_core', 'textanalysis', 'util', 'view/textanalyser_input', 'model/types'], +function($, Bacon , consts , rz_bus , rz_core , textanalysis , util, textanalyser_input, model_types) { var element_name = '#textanalyser', input = textanalyser_input({ @@ -53,6 +53,7 @@ var typeselection = function TypeSelectionDialog() { e_intro.show(); e_label.show(); e_desc.show(); + e_name.html(model_types.node_titles[textanalysis.selected_type()]); e.show(); } typeselection.hide = function() { @@ -67,7 +68,7 @@ var typeselection = function TypeSelectionDialog() { attach_to(node_id); e_intro.hide(); e_label.show(); - e_name.html(nodetype); + e_name.html(model_types.node_titles[nodetype]); if (desc) { e_desc.html(description[nodetype]); e_desc.show(); |
