|
Lines 674-679
function patron_autocomplete(node, options) {
Link Here
|
| 674 |
} else { |
674 |
} else { |
| 675 |
loggedInClass = ""; |
675 |
loggedInClass = ""; |
| 676 |
} |
676 |
} |
|
|
677 |
let new_date = new Date(); |
| 678 |
let today = Date.parse($date_to_rfc3339($date(new_date.toString()))); |
| 679 |
let expiration = Date.parse( |
| 680 |
$date_to_rfc3339($date(item.expiry_date.toString())) |
| 681 |
); |
| 682 |
let expired = today > expiration; |
| 677 |
return $("<li></li>") |
683 |
return $("<li></li>") |
| 678 |
.addClass(loggedInClass) |
684 |
.addClass(loggedInClass) |
| 679 |
.data("ui-autocomplete-item", item) |
685 |
.data("ui-autocomplete-item", item) |
|
Lines 709-714
function patron_autocomplete(node, options) {
Link Here
|
| 709 |
"</span>" |
715 |
"</span>" |
| 710 |
: "") + |
716 |
: "") + |
| 711 |
"</small>" + |
717 |
"</small>" + |
|
|
718 |
(expired |
| 719 |
? '<small><span class="circ-hlt">' + |
| 720 |
__("expired") + |
| 721 |
"</span></small>" |
| 722 |
: "") + |
| 712 |
"</a>" |
723 |
"</a>" |
| 713 |
) |
724 |
) |
| 714 |
.appendTo(ul); |
725 |
.appendTo(ul); |
| 715 |
- |
|
|