mirror of https://github.com/zulip/zulip.git
Code Simplification and Emoji Drag Fix.
There’s no need for four separate `$(sel).is()` statements, one will do. This also added .drag to the list to ignore.
This commit is contained in:
parent
2663215625
commit
5d2b81358c
|
@ -288,10 +288,7 @@ $(function () {
|
||||||
|
|
||||||
function handle_compose_click(e) {
|
function handle_compose_click(e) {
|
||||||
// Emoji clicks should be handled by their own click handler in popover.js
|
// Emoji clicks should be handled by their own click handler in popover.js
|
||||||
if ($(e.target).is("#emoji_map") ||
|
if ($(e.target).is("#emoji_map, .emoji_popover, .emoji_popover.inner, img.emoji, .drag")) {
|
||||||
$(e.target).is(".emoji_popover") ||
|
|
||||||
$(e.target).is(".emoji_popover.inner") ||
|
|
||||||
$(e.target).is("img.emoji")) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Don't let clicks in the compose area count as
|
// Don't let clicks in the compose area count as
|
||||||
|
|
Loading…
Reference in New Issue