From 5ebac29508b14ac38e1e59bc18e4e2ed1076ca52 Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Mon, 17 Sep 2012 13:07:59 -0400 Subject: [PATCH] Switch back to 'Home' view when composing new message. For now the idea is that if you're in the search view (or the subscriptions view) and you click 'New Message', we should snap you back to the main view. This may or may not be the right behavior in the long term. (imported from commit 43c24e1af9e80225ff9be8a62f4c8c925960436a) --- templates/zephyr/index.html | 6 +++--- zephyr/static/js/zephyr.js | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/templates/zephyr/index.html b/templates/zephyr/index.html index 5b39bcd98f..d2a0633bb4 100644 --- a/templates/zephyr/index.html +++ b/templates/zephyr/index.html @@ -46,7 +46,7 @@ var people_list = {{ people }};
diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index a54181e031..1dd8583e95 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -70,6 +70,11 @@ function sub(zephyr_class) { $.post('/subscriptions/add/', {new_subscriptions: zephyr_class}); } +function compose_button() { + $('#sidebar a[href="#home"]').tab('show'); + show_compose(); +} + function hide_compose() { $('input, textarea, button').blur(); $('.zephyr_compose').slideUp('fast');