Skip to content

Commit 5ece2cb

Browse files
committed
fixed no post bug
1 parent 3e5cca7 commit 5ece2cb

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

_src/coffee/app.coffee

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ angular.module "gitblog", [
143143
$scope.blogListReady = $q.all [userDefer.promise, orgDefer.promise]
144144
$scope.blogListReady
145145
.then ->
146-
$scope.loading = false
146+
$scope.$evalAsync ->
147+
$scope.loading = false
147148
$scope.saveCache()
148149

149150
$scope.getRepo = (username, reponame)->

assets/js/application.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -68266,7 +68266,9 @@ angular.module("gitblog", ['ngRoute', 'ngAnimate', 'angularLocalStorage', 'unsav
6826668266
});
6826768267
$scope.blogListReady = $q.all([userDefer.promise, orgDefer.promise]);
6826868268
return $scope.blogListReady.then(function() {
68269-
$scope.loading = false;
68269+
$scope.$evalAsync(function() {
68270+
return $scope.loading = false;
68271+
});
6827068272
$scope.saveCache();
6827168273
return $scope.getRepo = function(username, reponame) {
6827268274
var repo, _i, _len, _ref;

0 commit comments

Comments
 (0)