Skip to content

Commit

Permalink
Bug fix for weekly condition when no modal is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
audaciouscode committed Aug 7, 2017
1 parent 7cfa2c9 commit 72f051d
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions www/scripts/controllers/weekly_check_in.js
Expand Up @@ -166,15 +166,20 @@ angular.module('livewellApp').controller('WeeklyCheckInCtrl', function($scope, $

$scope.$apply();

$("#continue").modal();

$('#continue').on('hide.bs.modal', function (e) {
console.log('HIDE');
console.log($location);

$location.path("/ews");
$scope.$apply();
});
if ($scope.reachoutMessage != null) {
$("#continue").modal();

$('#continue').on('hide.bs.modal', function (e) {
console.log('HIDE');
console.log($location);

$location.path("/ews");
$scope.$apply();
});
} else {
$location.path("/ews");
$scope.$apply();
}
});
});
});
Expand Down

0 comments on commit 72f051d

Please sign in to comment.