]> git.koha-community.org Git - koha.git/commit
Bug 15299: Ask for confirmation when deleting a report from second page
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Jan 2016 12:50:35 +0000 (12:50 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 29 Jan 2016 14:10:28 +0000 (15:10 +0100)
commitdfdf3c15de1fc741f6aafcea83d340728c6bffc3
tree42982ccaf6c854492c9407b7176eac65e88b6cb2
parent2f3843af990491ea9e628c064838b904f9e9223d
Bug 15299: Ask for confirmation when deleting a report from second page

Some link are hidden when loading the page, by DataTables, we need to
use the delegate jQuery method to attach a handler to the click event
for all delete links (the ones existing when loading the page, and the
ones displayed in the future).

Test plan:
Have more than 20 reports defined
Go on the report list view, then change the number of elements
displayed, click "action>delete". You should get a warn.

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Confirm that there is now a confirmation on delete from the list -> action menu

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit dcce65c8fd6f6d4963a3dd0e8b73a79548a2aa8b)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Conflicts:
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt