Lines 17-23
function check_form_borrowers(nav){
Link Here
|
17 |
//patrons form to test if you checked no to the question of double |
17 |
//patrons form to test if you checked no to the question of double |
18 |
if (statut!=1 && document.form.check_member.value > 0 ) { |
18 |
if (statut!=1 && document.form.check_member.value > 0 ) { |
19 |
if (!(document.form.answernodouble.checked)){ |
19 |
if (!(document.form.answernodouble.checked)){ |
20 |
message_champ+= MSG_DUPLICATE_SUSPICION; |
20 |
message_champ += __("Please confirm whether this is a duplicate patron"); |
21 |
statut=1; |
21 |
statut=1; |
22 |
document.form.nodouble.value=0; |
22 |
document.form.nodouble.value=0; |
23 |
} else { |
23 |
} else { |
Lines 72-78
function update_category_code(category_code) {
Link Here
|
72 |
//Change password length hint |
72 |
//Change password length hint |
73 |
var hint = $("#password").siblings(".hint").first(); |
73 |
var hint = $("#password").siblings(".hint").first(); |
74 |
var min_length = $('select'+category_selector+' option:selected').data('pwdLength'); |
74 |
var min_length = $('select'+category_selector+' option:selected').data('pwdLength'); |
75 |
var hint_string = MSG_PASSWORD_LENGTH.format(min_length); |
75 |
var hint_string = __("Minimum password length: %s").format(min_length); |
76 |
hint.html(hint_string); |
76 |
hint.html(hint_string); |
77 |
} |
77 |
} |
78 |
|
78 |
|
Lines 159-174
function write_age() {
Link Here
|
159 |
|
159 |
|
160 |
var age_string; |
160 |
var age_string; |
161 |
if (age.year || age.month) { |
161 |
if (age.year || age.month) { |
162 |
age_string = LABEL_AGE + ": "; |
162 |
age_string = __("Age") + ": "; |
163 |
} |
163 |
} |
164 |
|
164 |
|
165 |
if (age.year) { |
165 |
if (age.year) { |
166 |
age_string += age.year > 1 ? MSG_YEARS.format(age.year) : MSG_YEAR.format(age.year); |
166 |
age_string += age.year > 1 ? __("%s years").format(age.year) : __("%s year").format(age.year); |
167 |
age_string += " "; |
167 |
age_string += " "; |
168 |
} |
168 |
} |
169 |
|
169 |
|
170 |
if (age.month) { |
170 |
if (age.month) { |
171 |
age_string += age.month > 1 ? MSG_MONTHS.format(age.month) : MSG_MONTH.format(age.month); |
171 |
age_string += age.month > 1 ? __("%s months").format(age.month) : __("%s month").format(age.month); |
172 |
} |
172 |
} |
173 |
|
173 |
|
174 |
hint.html(age_string); |
174 |
hint.html(age_string); |