From 63c75f714f043d98e8a8ce7b0bd39f68cfc8a103 Mon Sep 17 00:00:00 2001 From: Harald Kraemer Date: Mon, 19 May 2014 17:00:23 +0200 Subject: [PATCH] Warnings in dash.js --- src/app/controllers/dash.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/controllers/dash.js b/src/app/controllers/dash.js index e4d6af888da..09761d4c53d 100644 --- a/src/app/controllers/dash.js +++ b/src/app/controllers/dash.js @@ -61,13 +61,12 @@ function (angular, $, config, _) { console.log( "dash controller -> init -> current dashboard", dashboard.current ); $scope.filter.init( dashboard.current ); - $scope.$watch('dashboard.current', function(newValue, oldValue) { + $scope.$watch('dashboard.current', function(newValue) { $scope.filter.init( newValue ); }); console.log( "Scope I watch on", $scope ); - $scope.$watch('filter.time', function(newValue, oldValue) { - console.log( "Hai" ); + $scope.$watch('filter.time', function() { $scope.dashboard.refresh(); }, true); // Clear existing alerts @@ -80,7 +79,7 @@ function (angular, $, config, _) { $scope.bindKeyboardShortcuts(); }; - $scope.bindKeyboardShortcuts = dashboardKeybindings.shortcuts + $scope.bindKeyboardShortcuts = dashboardKeybindings.shortcuts; $scope.isPanel = function(obj) { if(!_.isNull(obj) && !_.isUndefined(obj) && !_.isUndefined(obj.type)) {