New Setting: Don't jump to new posts when replying

This commit is contained in:
Robin Ward
2014-05-26 16:39:03 -04:00
parent 7900c7bd2f
commit 5284fb7cbc
10 changed files with 42 additions and 42 deletions

View File

@ -155,8 +155,10 @@ export default Discourse.Controller.extend({
} else {
currentUser.set('reply_count', currentUser.get('reply_count') + 1);
}
Discourse.URL.routeTo(opts.post.get('url'));
if ((!composer.get('replyingToTopic')) || (!Discourse.User.currentProp('disable_jump_reply'))) {
Discourse.URL.routeTo(opts.post.get('url'));
}
}, function(error) {
composer.set('disableDrafts', false);
bootbox.alert(error);