From c20a7cd4dfb43dbe7556dfd165a57818cea1ca31 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 18 Nov 2014 12:40:43 -0500 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 9fcdb0108217fc746731d2d8736a8765427453a0) Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 6 ++++++ koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 3 +++ 2 files changed, 9 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index f7678f0804..5b091c742f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -283,6 +283,12 @@ tr.warn 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; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js index cec5707b37..1024460bd9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -63,8 +63,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 ); -- 2.39.5