Bugzilla – Attachment 34184 Details for
Bug 13290
Add better feedback for returns to the checkouts table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13290 - Add better feedback for returns to the checkouts table
Bug-13290---Add-better-feedback-for-returns-to-the.patch (text/plain), 2.47 KB, created by
Jonathan Druart
on 2014-12-08 16:31:45 UTC
(
hide
)
Description:
Bug 13290 - Add better feedback for returns to the checkouts table
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-12-08 16:31:45 UTC
Size:
2.47 KB
patch
obsolete
>From 120f04fdbc3fe6486e4abb15ccba90c01966400a Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >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 <cbrannon@cdalibary.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 8 +++++++- > koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 3 +++ > 2 files changed, 10 insertions(+), 1 deletion(-) > >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 5eb6aab2..6416205 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >@@ -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; > } >@@ -2740,4 +2746,4 @@ span.onsite_checkout { > background-color : rgba(255, 242, 206, 0.5); > border-radius: 4px; > border : 1px solid #FFF2CE; >-} >\ No newline at end of file >+} >diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >index a135496..3a10956 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >@@ -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 ); >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13290
:
33663
|
33766
|
34119
|
34130
|
34184
|
34728