Move respond_to_message to compose.js.

This commit is contained in:
Vishnu Ks
2016-06-29 03:57:50 +05:30
committed by Tim Abbott
parent def8cd8e78
commit e4b72c3a65
6 changed files with 46 additions and 52 deletions

View File

@@ -459,13 +459,13 @@ exports.register_click_handlers = function () {
});
$('body').on('click', '.respond_button', function (e) {
respond_to_message({trigger: 'popover respond'});
compose.respond_to_message({trigger: 'popover respond'});
popovers.hide_actions_popover();
e.stopPropagation();
e.preventDefault();
});
$('body').on('click', '.respond_personal_button', function (e) {
respond_to_message({reply_type: 'personal', trigger: 'popover respond pm'});
compose.respond_to_message({reply_type: 'personal', trigger: 'popover respond pm'});
popovers.hide_all();
e.stopPropagation();
e.preventDefault();