Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

Commit

Permalink
Do not change active doc index
Browse files Browse the repository at this point in the history
  • Loading branch information
trivedigaurav committed Nov 13, 2014
1 parent 1680b20 commit 59c08f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,12 @@ angular.module('myApp.controllers', [])
// console.log($scope.gridData);

//Show first report in the set
$scope.active.docIndex = 0;
$scope.loadReport(0);

if(typeof $scope.gridData[$scope.active.docIndex] == 'undefined') {
$scope.active.docIndex = 0;
}

$scope.loadReport($scope.active.docIndex);

$scope.variableData = data['variableData'];

// console.log($scope.variableData);
Expand Down

0 comments on commit 59c08f2

Please sign in to comment.