Bug 8836 [Alt QA Followup] - Add confirmation dialog for deleting collections
authorOwen Leonard <oleonard@myacpl.org>
Fri, 31 Oct 2014 13:04:43 +0000 (09:04 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 6 Nov 2014 18:12:20 +0000 (15:12 -0300)
commite26c8efbdbd4e240dc43f453a86277e55ae184f3
treee56698ce79f58fe2984d78b7f895e17f8a8dee09
parent1d7622a90ff73280e5e8bfa720963526c4ab2c0a
Bug 8836 [Alt QA Followup] - Add confirmation dialog for deleting collections

The previous patch for adding a confirmation dialog didn't work to make
the confirmation message translatable. This alternate patch uses a
progressive-enhancement method recycled from Guided Reports to trigger a
warning and highlight the row which was clicked.

To test, apply the patch and try to delete an existing rotating
collection. You should get a confirmation dialog, and the corresponding
row in the table should be highlighted red.

Clicking cancel should cancel the deletion. Clicking OK should complete
the deletion.

To test the translatability of the confirmation message:

Run perl translate update [a language code, e.g. 'en-GB']
Search [lang]-i-staff-t-prog-v-3006000.po for the message string

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt