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

View File

@@ -1264,6 +1264,11 @@ $(function () {
e.preventDefault(); 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) { $(".brand").on('click', function (e) {
if (exports.home_tab_obscured()) { if (exports.home_tab_obscured()) {
ui.change_tab_to('#home'); ui.change_tab_to('#home');