Skip to content

Commit 55a6e66

Browse files
committed
Initial index WIP fix
1 parent 9cd11a0 commit 55a6e66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

assets/src/modules/sm/Generate/controllers/GenerateController.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ angular.module('sm').controller("GenerateController", function($scope, globalKbd
185185
// Otherwise reset page, scroll to schedules and clear errors
186186
$scope.state.displayOptions.currentPage = 0;
187187
$scope.scrollToSchedules();
188+
189+
for (var count = 0; count < schedules.length; count++) {
190+
schedules[count].initialIndex = count;
191+
}
192+
188193
$scope.state.schedules = data.schedules;
189194
$scope.resultError = '';
190195
}

0 commit comments

Comments
 (0)