make sure the progress bar always goes to 100% before removing

This commit is contained in:
Brian Gough 2015-01-26 13:41:28 +00:00
parent 5a47b1bac2
commit d9a3776183

View file

@ -91,6 +91,8 @@ define [
# flashControls() # flashControls()
scope.$on "loaded", () -> scope.$on "loaded", () ->
scope.progress = 100
scope.$apply()
$timeout () -> $timeout () ->
scope.loading = false scope.loading = false
delete scope.progress delete scope.progress