mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Use the new compose API
(imported from commit fb91febbd5c257aea15292d8071da69a3e6b9a99)
This commit is contained in:
@@ -55,13 +55,6 @@ exports.clear = function () {
|
||||
$("#compose").find('input[type=text], textarea').val('');
|
||||
};
|
||||
|
||||
exports.button_press = function (tabname) {
|
||||
exports.clear();
|
||||
$('#sidebar a[href="#home"]').tab('show');
|
||||
exports.show(tabname, $("#" + tabname));
|
||||
hotkeys.set_compose();
|
||||
};
|
||||
|
||||
exports.toggle_mode = function () {
|
||||
if ($("#message-type-tabs li.active").find("a[href=#stream-message]").length !== 0) {
|
||||
// In stream tab, switch to personals.
|
||||
|
||||
Reference in New Issue
Block a user