diff --git a/src/app/controllers/graphiteTarget.js b/src/app/controllers/graphiteTarget.js index 530fd6ef124..157c0635867 100644 --- a/src/app/controllers/graphiteTarget.js +++ b/src/app/controllers/graphiteTarget.js @@ -132,11 +132,12 @@ function (angular, _, config) { $scope.functions = _.without($scope.functions, func); }; - $scope.functionParmsChanged = function(func) { - func.text = func.name + '('; + $scope.functionParamsChanged = function(func) { + func.text = func.def.name + '('; _.each(func.def.params, function(param) { func.text += func.params[param.name]; }); + func.text += ')'; }; $scope.addFunction = function() { diff --git a/src/app/panels/graphite/editor.html b/src/app/panels/graphite/editor.html index 506acb11496..ea2ee724310 100644 --- a/src/app/panels/graphite/editor.html +++ b/src/app/panels/graphite/editor.html @@ -95,8 +95,11 @@