Browse Source

fix(): clicking on items in graphites add function menu did not work, now works again, broken in recent panel refactorings

Torkel Ödegaard 10 years ago
parent
commit
4e33e80957

+ 17 - 0
examples/nginx-app/src/dashboards/dashboard.js

@@ -0,0 +1,17 @@
+require([
+], function () {
+
+  function Dashboard() {
+
+    this.getInputs = function() {
+
+    };
+
+    this.buildDashboard = function() {
+
+    };
+  }
+
+  return Dashboard;
+});
+

+ 1 - 1
public/app/plugins/datasource/graphite/add_graphite_func.js

@@ -99,7 +99,7 @@ function (angular, _, $, gfunc) {
         submenu: _.map(list, function(value) {
           return {
             text: value.name,
-            click: "addFunction('" + value.name + "')",
+            click: "ctrl.addFunction('" + value.name + "')",
           };
         })
       };