|
Lines 118-123
function select_user(borrowernumber, borrower, relationship) {
Link Here
|
| 118 |
$('#guarantor_relationships').append( fieldset ); |
118 |
$('#guarantor_relationships').append( fieldset ); |
| 119 |
fieldset.show(); |
119 |
fieldset.show(); |
| 120 |
|
120 |
|
|
|
121 |
// Remove class ignore_validation from new_guarantor_relationship to validate missing relationship value |
| 122 |
if($(".new_guarantor_relationship").is(":visible")){ |
| 123 |
$(".new_guarantor_relationship").removeClass("ignore_validation"); |
| 124 |
} |
| 125 |
|
| 121 |
if ( relationship ) { |
126 |
if ( relationship ) { |
| 122 |
fieldset.find('.new_guarantor_relationship').val(relationship); |
127 |
fieldset.find('.new_guarantor_relationship').val(relationship); |
| 123 |
} |
128 |
} |
|
Lines 240-246
$(document).ready(function(){
Link Here
|
| 240 |
jQuery.validator.messages.phone); |
245 |
jQuery.validator.messages.phone); |
| 241 |
|
246 |
|
| 242 |
$("#entryform").validate({ |
247 |
$("#entryform").validate({ |
| 243 |
ignore: "", |
248 |
ignore: ".ignore_validation", |
| 244 |
rules: { |
249 |
rules: { |
| 245 |
email: { |
250 |
email: { |
| 246 |
email: true |
251 |
email: true |
| 247 |
- |
|
|