Bug 18656 - Require confirmation of deletion of files from patron record
commita38ffe2d48c35029ef80ea0a4294e36b408cd1a4
authorOwen Leonard <oleonard@myacpl.org>
Wed, 24 May 2017 13:46:50 +0000 (24 13:46 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jun 2017 14:11:13 +0000 (12 11:11 -0300)
tree5e28c12d2299e239262cd851de7e5d99229167e6
parent25bbc181c9ceacd84582368f0006d4025250ea1f
Bug 18656 - Require confirmation of deletion of files from patron record

This patch adds a JavaScript confirm to the deletion of files. It also
styles the file deletion link as a Bootstrap button.

To test, apply the patch and open the "Files" page for a patron who has
files attached.

- Verify that clicking any "delete" link prompts for a confirmation.
- Verify that confirming the dialog triggers the deletion of the correct
  file.
- Verify that canceling the confirmation dialog aborts the deletion.
- Confirm that the "Delete" button looks correct.

Signed-off-by: David Roberts <david.roberts@ptfs-europe.com>
Revision for QA: Replaced '.click(function' with '.on("click",function'

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt