|
Lines 497-508
$(document).ready(function() {
Link Here
|
| 497 |
var ul = $('<ul>'); |
497 |
var ul = $('<ul>'); |
| 498 |
Object.keys(checkoutsByItype).sort().forEach(function (itype) { |
498 |
Object.keys(checkoutsByItype).sort().forEach(function (itype) { |
| 499 |
var li = $('<li>') |
499 |
var li = $('<li>') |
| 500 |
.append($('<strong>').html(itype || _("No itemtype"))) |
500 |
.append($('<strong>').html(itype || MSG_NO_ITEMTYPE)) |
| 501 |
.append(': ' + checkoutsByItype[itype]); |
501 |
.append(': ' + checkoutsByItype[itype]); |
| 502 |
ul.append(li); |
502 |
ul.append(li); |
| 503 |
}) |
503 |
}) |
| 504 |
$('<details>') |
504 |
$('<details>') |
| 505 |
.append($('<summary>').html(_("Number of checkouts by item type"))) |
505 |
.addClass('checkouts-by-itemtype') |
|
|
506 |
.append($('<summary>').html(MSG_CHECKOUTS_BY_ITEMTYPE)) |
| 506 |
.append(ul) |
507 |
.append(ul) |
| 507 |
.insertBefore(oSettings.nTableWrapper) |
508 |
.insertBefore(oSettings.nTableWrapper) |
| 508 |
}, |
509 |
}, |
| 509 |
- |
|
|