mirror of https://github.com/zulip/zulip.git
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:
parent
fe9cc4597f
commit
1975a6f693
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue