Bugzilla – Attachment 97445 Details for
Bug 24433
OPAC account page no longer asks for confirmation before deleting hold
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24433: OPAC account page no longer asks for confirmation before deleting hold
Bug-24433-OPAC-account-page-no-longer-asks-for-con.patch (text/plain), 2.44 KB, created by
Owen Leonard
on 2020-01-16 14:58:22 UTC
(
hide
)
Description:
Bug 24433: OPAC account page no longer asks for confirmation before deleting hold
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-01-16 14:58:22 UTC
Size:
2.44 KB
patch
obsolete
>From da776e07b879313675ec3270a2c4f4a3fe8b7a11 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 16 Jan 2020 14:52:00 +0000 >Subject: [PATCH] Bug 24433: OPAC account page no longer asks for confirmation > before deleting hold > >This patch restores markup added by Bug 21870 and subsequently removed >accidentally by Bug 21772. This allows the OPAC user summary page to >display a confirmation dialog before deleting a hold. > >To test, apply the patch and log in to the OPAC as a user with holds. > > - On the "Your summary" page, click the "Holds" tab. > - Click the "Cancel" button next to any hold. > - You should see a modal dialog asking for confirmation, showing the > correct title. > - Test both the "Yes" and "No" actions. >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc >index 3c5ea159386..aea867a2136 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc >@@ -184,10 +184,11 @@ > [% IF ! onlyinfo %] > <td class="modify"> > [% IF ( HOLD.is_cancelable_from_opac ) %] >- <form action="/cgi-bin/koha/opac-modrequest.pl" method="post"> >+ <form id="delete_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> > <input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" /> > <input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> >- <button type="submit" name="submit" class="btn btn-mini btn-danger" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);"><i class="fa fa-remove"></i> Cancel</button></form> >+ <button data-title="[% INCLUDE 'biblio-title-head.inc' biblio=HOLD.biblio %]" data-reserve_id="[% HOLD.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-delete-hold"><i class="fa fa-remove"></i> Cancel</button> >+ </form> > [% END %] > </td> > [% END # / IF onlyinfo %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24433
:
97445
|
97570
|
97592