From a9c8426151fe1db624f25337396606ba486e1ead Mon Sep 17 00:00:00 2001 From: Nihal Singh Date: Thu, 19 May 2016 17:06:16 +0530 Subject: [PATCH] Display no of results for given filter --- angular_scripts.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/angular_scripts.js b/angular_scripts.js index 70821a4..f3aff0e 100644 --- a/angular_scripts.js +++ b/angular_scripts.js @@ -473,13 +473,18 @@ app.controller('wptviewController', function($scope, $location, $interval, Resul var maxTestId = null; $scope.busy = true; - + console.log("filltable"); if (page === "next") { var minTestId = $scope.resultsView.maxTestId; } else if (page === "prev") { var maxTestId = $scope.resultsView.minTestId; } + resultsModel.getResults($scope.filter, $scope.runs, minTestId, maxTestId, Infinity) + .then((results) => { + console.log("Total="+results.length); + }); + resultsModel.getResults($scope.filter, $scope.runs, minTestId, maxTestId, $scope.resultsView.limit) .then((results) => { if (results.length) {