This patch adds the same behavior when deleting 1 or more reports.
When checkboxes are checked and the "delete selected" button is pressed,
checked lines are hightlighted in red.
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
alert(_("You must select one or more reports to delete"));
return false;
}
- return confirm(_("Are you sure you want to delete the selected reports?"));
+ $(checkedItems).parents('tr').addClass("warn");
+ if( confirm(_("Are you sure you want to delete the selected reports?")) ) {
+ return true;
+ } else {
+ $(checkedItems).parents('tr').removeClass("warn");
+ return false;
+ }
});
[% END %]