From 9fb4d5ccd4ba05c85334b0b53ce2e9da25c0b30e Mon Sep 17 00:00:00 2001 From: jekkos Date: Thu, 9 Jun 2016 17:51:50 +0200 Subject: [PATCH] Fix email button enabled state (#628) --- application/views/people/manage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/views/people/manage.php b/application/views/people/manage.php index 2a13ecfce..a552a0093 100644 --- a/application/views/people/manage.php +++ b/application/views/people/manage.php @@ -12,8 +12,8 @@ $(document).ready(function() uniqueId: 'people.person_id', enableActions: function() { - var email_disabled = $("tr.selected a[href^='mailto:']").length == 0; - $("#email").attr('disabled', email_disabled); + var email_disabled = $("td input:checkbox:checked").parents("tr").find("td a[href^='mailto:']").length == 0; + $("#email").prop('disabled', email_disabled); } });