mirror of https://github.com/zulip/zulip.git
Handle Zephyr body clicks like the other clickable elements
(imported from commit 97da4b22aea4e23dd0227b0179481cb3b5f7a65e)
This commit is contained in:
parent
6f269051d1
commit
fce5643d15
|
@ -198,13 +198,9 @@ $(function () {
|
|||
$('input, textarea, button').focus(function () {
|
||||
allow_hotkeys = false;
|
||||
});
|
||||
|
||||
$('input, textarea, button').blur(function () {
|
||||
allow_hotkeys = true;
|
||||
});
|
||||
$("body").delegate("p", "click", function (){
|
||||
select_zephyr(get_id($(this).parent().parent()));
|
||||
});
|
||||
});
|
||||
|
||||
$(document).keydown(function (event) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{! Client-side Mustache template for rendering zephyrs.}}
|
||||
<td class="pointer"><p></p></td>
|
||||
<td><p>
|
||||
<td><p onclick="select_zephyr({{id}})">
|
||||
{{#is_huddle}}
|
||||
<span class="hidden zephyr_huddle_recipients_list
|
||||
">{{#display_recipient}}{{name}}, {{/display_recipient}}</span>
|
||||
|
|
Loading…
Reference in New Issue