Lines 122-128
function select_user(borrowernumber, borrower, relationship) {
Link Here
|
122 |
fieldset.find('.new_guarantor_relationship').val(relationship); |
122 |
fieldset.find('.new_guarantor_relationship').val(relationship); |
123 |
} |
123 |
} |
124 |
|
124 |
|
125 |
if(typeof guarantor_attributes !== 'undefined' && to_api_mapping) { |
125 |
if(guarantor_attributes && to_api_mapping) { |
|
|
126 |
$('#saverecord').prop('disabled', true); |
126 |
$.ajax({ |
127 |
$.ajax({ |
127 |
url: '/api/v1/patrons/'+borrowernumber, |
128 |
url: '/api/v1/patrons/'+borrowernumber, |
128 |
method: "GET", |
129 |
method: "GET", |
Lines 135-140
function select_user(borrowernumber, borrower, relationship) {
Link Here
|
135 |
document.forms.entryform[attribute].value = data[key_data]; |
136 |
document.forms.entryform[attribute].value = data[key_data]; |
136 |
} |
137 |
} |
137 |
} |
138 |
} |
|
|
139 |
$('#saverecord').prop('disabled', false); |
140 |
}, |
141 |
error:function(){ |
142 |
$('#saverecord').prop('disabled', false); |
138 |
} |
143 |
} |
139 |
}); |
144 |
}); |
140 |
} |
145 |
} |
141 |
- |
|
|