From: Nick Clemens Date: Mon, 17 Apr 2017 17:22:24 +0000 (-0400) Subject: Bug 18439 - Resend button for notices being hidden by CSS and never unhidden X-Git-Tag: v17.05.00~297 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=ea04798a16ad8c8400030440e21825fc20b03808;p=srvgit Bug 18439 - Resend button for notices being hidden by CSS and never unhidden Current jQuery is not unhiding resend button, this patch adds an id and a toggle command To test: 1 - Enable EnhancedMessagingPreferences 2 - Find a patron with sent or failed messages 3 - Note you can expand message, but not resend 4 - Apply patch 5 - Note that on expanding message a 'Resend' button appears 6 - Ensure resend button operates as expected Works as expected. Signed-off-by: Marc VĂ©ron Signed-off-by: Lari Taskula Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt index cea5b0d66f..7ae818c653 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt @@ -20,6 +20,7 @@ e.preventDefault(); var rowid = $(this).data("noticeid"); $("#notice"+rowid).toggle(); + $("#resend_notice"+rowid).toggle(); }); }); @@ -76,7 +77,7 @@ [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %]deleted [% ELSE %][% QUEUED_MESSAGE.status %][% END %] [% IF ( QUEUED_MESSAGE.status != 'pending' ) %] -
+