Cancel a compose if you click on one of the global filters

See trac ticket #1840.

(imported from commit 3e0a781252db575e5c0abb70565919e4cdaa963f)
This commit is contained in:
Luke Faraone 2013-10-08 14:19:49 -04:00
parent fe9cc4597f
commit 1975a6f693
1 changed files with 5 additions and 0 deletions

View File

@ -1264,6 +1264,11 @@ $(function () {
e.preventDefault();
});
$('#global_filters li a').on('click', function (e) {
// Cancel a compose if you click on one of the global filters
compose.cancel();
});
$(".brand").on('click', function (e) {
if (exports.home_tab_obscured()) {
ui.change_tab_to('#home');