Skip to content

Commit 257dc7d

Browse files
committed
removed unneeded function
1 parent 963a13a commit 257dc7d

File tree

1 file changed

+3
-7
lines changed
  • flask_monitoringdashboard/frontend/js/controllers

1 file changed

+3
-7
lines changed

flask_monitoringdashboard/frontend/js/controllers/exception.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export function ExceptionController($scope, $http, $location, menuService, pagin
77

88
const handleKeyDown = function (key) {
99
if(key.key === "Enter") {
10-
$scope.query();
10+
if ($scope.queryString === $scope.oldQuery) return;
11+
$scope.buildQueryString($scope.queryString);
12+
setPaginationTotal();
1113
}
1214
}
1315

@@ -80,12 +82,6 @@ export function ExceptionController($scope, $http, $location, menuService, pagin
8082
else $location.search("genericSearch", null);
8183
}
8284

83-
$scope.query = function (){
84-
if ($scope.queryString === $scope.oldQuery) return;
85-
$scope.buildQueryString($scope.queryString);
86-
setPaginationTotal();
87-
}
88-
8985
paginationService.onReload = function () {
9086
$http.get($scope.getEndpoint()+window.location.search).then(function (response) {
9187
$scope.table = response.data;

0 commit comments

Comments
 (0)