Lines 81-86
function update_category_code(category_code) {
Link Here
|
81 |
var min_length = $('select'+category_selector+' option:selected').data('pwdLength'); |
81 |
var min_length = $('select'+category_selector+' option:selected').data('pwdLength'); |
82 |
var hint_string = __("Minimum password length: %s").format(min_length); |
82 |
var hint_string = __("Minimum password length: %s").format(min_length); |
83 |
hint.html(hint_string); |
83 |
hint.html(hint_string); |
|
|
84 |
|
85 |
// Change patron's expiration date |
86 |
$('#categorycode_entry').change(function() { |
87 |
var fp = $("#to").flatpickr(); |
88 |
var expiryDate = $('select'+category_selector+' option:selected').data('expiryDate'); |
89 |
// Check if expiryDate is available and format it to YYYY-MM-DD |
90 |
if (expiryDate) { |
91 |
var formattedDate = expiryDate.split('T')[0]; |
92 |
fp.setDate(formattedDate); |
93 |
} |
94 |
}); |
84 |
} |
95 |
} |
85 |
|
96 |
|
86 |
function select_user(borrowernumber, borrower, relationship) { |
97 |
function select_user(borrowernumber, borrower, relationship) { |
87 |
- |
|
|