Lines 1226-1232
$(document).ready(function() {
Link Here
|
1226 |
[% q_add_f = Koha.Preference('PatronQuickAddFields').split('\|') %] |
1226 |
[% q_add_f = Koha.Preference('PatronQuickAddFields').split('\|') %] |
1227 |
var qaddfields = [[% FOREACH field IN q_add_f.unique %]"[% field %]",[% END %]]; |
1227 |
var qaddfields = [[% FOREACH field IN q_add_f.unique %]"[% field %]",[% END %]]; |
1228 |
var skipped_fields = ["contactname","contactfirstname","relationship"]; //Guarantor form is pulled as a whole, ignore individual fields |
1228 |
var skipped_fields = ["contactname","contactfirstname","relationship"]; //Guarantor form is pulled as a whole, ignore individual fields |
1229 |
var passwd_mandatory = [% IF mandatorypassword %]0[% ELSE %]1[% END %]; |
|
|
1230 |
$("#entryform label").each(function () { |
1229 |
$("#entryform label").each(function () { |
1231 |
var input_label = $(this).attr('for'); |
1230 |
var input_label = $(this).attr('for'); |
1232 |
if ( input_label == 'sex-female' ) { |
1231 |
if ( input_label == 'sex-female' ) { |
Lines 1238-1244
$(document).ready(function() {
Link Here
|
1238 |
if ( skipped_fields.indexOf( input_label ) != -1 ) { input_label=""; } |
1237 |
if ( skipped_fields.indexOf( input_label ) != -1 ) { input_label=""; } |
1239 |
if( qaddfields.indexOf( input_label ) != -1 || $(this).attr('class') == 'required' ){ |
1238 |
if( qaddfields.indexOf( input_label ) != -1 || $(this).attr('class') == 'required' ){ |
1240 |
$(this).parent().clone().appendTo("#quick_add_list"); |
1239 |
$(this).parent().clone().appendTo("#quick_add_list"); |
1241 |
if( input_label == 'password' && passwd_mandatory ) $("#entryform label[for='password2']").parent().clone().appendTo("#quick_add_list"); |
1240 |
[% UNLESS mandatorypassword %] |
|
|
1241 |
if( input_label == 'password' ) $("#entryform label[for='password2']").parent().clone().appendTo("#quick_add_list"); |
1242 |
[% END %] |
1242 |
} |
1243 |
} |
1243 |
}); |
1244 |
}); |
1244 |
if( $("#memberentry_guarantor").length ) { |
1245 |
if( $("#memberentry_guarantor").length ) { |
1245 |
- |
|
|