mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
New Setting: Don't jump to new posts when replying
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user