mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
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:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user