From da15391910d9566c394b5dfbc07fa18712e832ec Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 8 Apr 2015 00:59:31 +0300 Subject: client: item_view: make type dropdown domain based --- src/client/view/graph_view.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/client/view/graph_view.js') diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 06f038c9..55131f11 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -55,11 +55,6 @@ function enableDebugViewOfDiffs(graph) }); } -function capitalize(word) { - if (word.length == 0) return ''; - return word.slice(0, 1).toUpperCase() + word.slice(1, word.length); -} - function init_checkboxes(update_view) { var // FIXME take filter names from index.html or both from graph db filter_states = _.object(_.map(model_types.nodetypes, function (type) { return [type, null]; })); @@ -73,7 +68,7 @@ function init_checkboxes(update_view) { input.attr("name", type); div.append(input); - div.append(capitalize(type)); + div.append(util.capitalize(type)); root.append(div); }); } -- cgit v1.3.1