From cb8332e1a620b1c8b848701edfee947e64d29645 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 11 Nov 2014 20:01:59 -0500 Subject: [PATCH] Bug 13236 - Regression: Table of checkouts no longer preselects overdue items for rewewal Before Bug 11703, overdue items in the list of a patrons checkouts had the renewal checkbox preselected so that librarians could quickly renew only those items which required it. This is not longer the case. This patch corrects it. To test, apply the patch and clear your browser cache. Check out to a patron who has overdues and confirm that the overdue items have the "renew" checkbox preselected. Check that items which are not overdue are not preselected. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Works as described, no problems found. Signed-off-by: Mason James --- .../intranet-tmpl/prog/en/js/checkouts.js | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js index 8ffb04b5e9..6c47c50b82 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -175,7 +175,6 @@ $(document).ready(function() { } return due; - } } }, { @@ -275,19 +274,22 @@ $(document).ready(function() { span_class = "renewals-allowed"; } - content += "" - + "" - + ""; - if ( oObj.renewals_remaining ) { - content += "(" - + RENEWALS_REMAINING.format( oObj.renewals_remaining, oObj.renewals_allowed ) - + ")"; + content += "" + + "" + + ""; + + content += "(" + + RENEWALS_REMAINING.format( oObj.renewals_remaining, oObj.renewals_allowed ) + + ")"; } content += ""; - return content; } }, -- 2.39.5