diff --git a/rd_ui/app/scripts/controllers/query_view.js b/rd_ui/app/scripts/controllers/query_view.js index a270ff7ca4..e158767c33 100644 --- a/rd_ui/app/scripts/controllers/query_view.js +++ b/rd_ui/app/scripts/controllers/query_view.js @@ -182,7 +182,7 @@ templateUrl: '/views/schedule_form.html', size: 'sm', scope: $scope, - controller: function($scope, $modalInstance) { + controller: ['$scope', '$modalInstance', function($scope, $modalInstance) { $scope.close = function() { $modalInstance.close(); } @@ -191,7 +191,7 @@ } else { $scope.refreshType = 'periodic'; } - } + }] }); };