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 <kyle@bywatersolutions.com> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works as described, no problems found. Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
parent
2094d1c27e
commit
cb8332e1a6
|
|
@ -175,7 +175,6 @@ $(document).ready(function() {
|
|||
}
|
||||
|
||||
return due;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -275,19 +274,22 @@ $(document).ready(function() {
|
|||
span_class = "renewals-allowed";
|
||||
}
|
||||
|
||||
content += "<span class='" + span_class + "' style='" + span_style + "'>"
|
||||
+ "<input type='checkbox' class='renew' id='renew_" + oObj.itemnumber + "' name='renew' value='" + oObj.itemnumber +"'/>"
|
||||
+ "</span>";
|
||||
|
||||
if ( oObj.renewals_remaining ) {
|
||||
content += "<span class='renewals'>("
|
||||
+ RENEWALS_REMAINING.format( oObj.renewals_remaining, oObj.renewals_allowed )
|
||||
+ ")</span>";
|
||||
content += "<span class='" + span_class + "' style='" + span_style + "'>"
|
||||
+ "<input type='checkbox' ";
|
||||
if ( oObj.date_due_overdue ) {
|
||||
content += "checked='checked' ";
|
||||
}
|
||||
content += "class='renew' id='renew_" + oObj.itemnumber + "' name='renew' value='" + oObj.itemnumber +"'/>"
|
||||
+ "</span>";
|
||||
|
||||
content += "<span class='renewals'>("
|
||||
+ RENEWALS_REMAINING.format( oObj.renewals_remaining, oObj.renewals_allowed )
|
||||
+ ")</span>";
|
||||
}
|
||||
|
||||
content += "</span>";
|
||||
|
||||
|
||||
return content;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue