Bug 13290 - Add better feedback for returns to the checkouts table

The feedback given when returning an item is only to update the "Check
in" column. It would be nice if the entire column was highlighted in
some way so librarians have an easier time spotting which items were
checked in and which ones failed to be checked in.

Test Plan:
1) Apply this patch
2) Browse to a patron with checkouts
3) Return an item using the checkouts table
4) Note if the return was successful, the row is highlighted in
   yellow, if the return was not allowed, the row is highlighted
   in red.

Signed-off-by: Christopher Brannon <cbrannon@cdalibary.org>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Kyle Hall 2014-11-18 12:40:43 -05:00 committed by Tomas Cohen Arazi
parent fc4e9ab62e
commit 9fcdb01082
2 changed files with 9 additions and 0 deletions

View file

@ -289,6 +289,12 @@ tr.warn:nth-child(odd) td {
background-color: #FF9090;
}
tr.ok td,
tr.ok:nth-child(odd) td,
tr.ok:nth-child(even) td {
background-color: #FFFFCC;
}
tr.onissue td {
background-color: #FFFFCC;
}

View file

@ -65,8 +65,11 @@ $(document).ready(function() {
content = "";
if ( data.returned ) {
content = CIRCULATION_RETURNED;
$(id).parent().parent().addClass('ok');
$('#date_due_' + data.itemnumber).html(_("Returned"));
} else {
content = CIRCULATION_NOT_RETURNED;
$(id).parent().parent().addClass('warn');
}
$(id).replaceWith( content );