From 2b7b39fe1f84f95db8097142b8109b51dbc9480f Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Sun, 17 Feb 2013 17:44:02 -0500 Subject: [PATCH] Make 'New stream' and 'New PM' buttons work when not on home tab. This fixes Trac #898. Prior to this commit, we only changed the tab to #home in compose.start; i.e. when a compose was not already in progress. This means that if the composebox was open and we were on the settings page, clicking one of these buttons would not work. (imported from commit aa88a605cdcb61d5b6a1ece6292001c5f5a19c66) --- zephyr/static/js/compose.js | 1 + 1 file changed, 1 insertion(+) diff --git a/zephyr/static/js/compose.js b/zephyr/static/js/compose.js index a6ae87dd2d..3e4d176e15 100644 --- a/zephyr/static/js/compose.js +++ b/zephyr/static/js/compose.js @@ -203,6 +203,7 @@ exports.clear = function () { // Set the mode of a compose already in progress. // Does not clear the input fields. exports.set_mode = function (mode) { + ui.change_tab_to('#home'); if (!is_composing_message) { exports.start(mode); }