Handle Zephyr body clicks like the other clickable elements

(imported from commit 97da4b22aea4e23dd0227b0179481cb3b5f7a65e)
This commit is contained in:
Keegan McAllister 2012-09-06 14:28:36 -04:00
parent 6f269051d1
commit fce5643d15
2 changed files with 1 additions and 5 deletions

View File

@ -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) {

View File

@ -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>