Use the new compose API

(imported from commit fb91febbd5c257aea15292d8071da69a3e6b9a99)
This commit is contained in:
Zev Benjamin
2012-10-18 14:17:55 -04:00
parent 746897b36a
commit 7a44a3b05a
5 changed files with 32 additions and 46 deletions

View File

@@ -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.