FEATURE: Nice error handling page

This commit is contained in:
riking
2014-06-16 11:25:33 -07:00
parent 0612018569
commit 0d4163e0a2
16 changed files with 265 additions and 7 deletions
@@ -385,6 +385,16 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected
});
},
retryLoading: function() {
var self = this;
self.set('retrying', true);
this.get('postStream').refresh().then(function() {
self.set('retrying', false);
}, function() {
self.set('retrying', false);
});
},
toggleWiki: function(post) {
post.toggleProperty('wiki');
}