Merge pull request #3906 from tgxworld/fix_quote_post_shortcut

FIX: Keyboard shortcut to quote reply.
This commit is contained in:
Régis Hanol 2015-11-23 09:34:30 +01:00
commit c7aaa56918
1 changed files with 7 additions and 3 deletions

View File

@ -97,10 +97,10 @@ export default {
}, },
quoteReply() { quoteReply() {
$('.topic-post.selected button.create').click(); this._replyToPost();
// lazy but should work for now // lazy but should work for now
setTimeout(function() { setTimeout(function() {
$('.wmd-quote-post').click(); $('.d-editor .quote').click();
}, 500); }, 500);
}, },
@ -119,7 +119,7 @@ export default {
}, },
replyToTopic() { replyToTopic() {
this.container.lookup('controller:topic').send('replyToPost'); this._replyToPost();
}, },
selectDown() { selectDown() {
@ -377,5 +377,9 @@ export default {
} }
return oldStopCallback.call(this, e, element, combo, sequence); return oldStopCallback.call(this, e, element, combo, sequence);
}; };
},
_replyToPost() {
this.container.lookup('controller:topic').send('replyToPost');
} }
}; };