From bf1672fe6623998c789cb7b08748b2185e51d87d Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 23 Oct 2018 14:15:33 +0530 Subject: [PATCH] on next and previous answers were getting reset- fixed --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js index 27db114..43d3f9a 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js @@ -194,7 +194,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, }); $timeout(function () { - if ($scope.SavedLabExercise != undefined && $scope.SavedLabExercise.lastQuestion > 0) { + if (($scope.SavedLabExercise != undefined && $scope.SavedLabExercise.lastQuestion > 0) || ($scope.LabExerciseUserData != undefined && $scope.LabExerciseUserData.length > 0)) { if ($scope.isResetClicked != true) { $scope.ShowSavedLabExercise(); -- libgit2 0.21.4