From 165381b79c54b1626db082ae45311ac3ceb0ffc9 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 4 May 2015 12:38:55 +0300 Subject: client: show node titles, not internal node types. fix #537 --- src/client/textanalysis.ui.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/client/textanalysis.ui.js') 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(); -- cgit v1.3.1