Lines 240-245
$(document).ready(function(){
Link Here
|
240 |
jQuery.validator.messages.phone); |
240 |
jQuery.validator.messages.phone); |
241 |
|
241 |
|
242 |
$("#entryform").validate({ |
242 |
$("#entryform").validate({ |
|
|
243 |
ignore: "", |
243 |
rules: { |
244 |
rules: { |
244 |
email: { |
245 |
email: { |
245 |
email: true |
246 |
email: true |
Lines 268-274
$(document).ready(function(){
Link Here
|
268 |
else |
269 |
else |
269 |
form.beenSubmitted = true; |
270 |
form.beenSubmitted = true; |
270 |
form.submit(); |
271 |
form.submit(); |
271 |
} |
272 |
}, |
|
|
273 |
invalidHandler: function(form, validator) { |
274 |
var error_msg = jQuery.validator.messages.missing_fields; |
275 |
// First remove error messages so that it doesn't |
276 |
// show in fieldset without errors |
277 |
$("fieldset").each(function(){ |
278 |
$("#"+$(this).attr("id")+"-error").remove(); |
279 |
}); |
280 |
$(validator.errorList).each(function() { |
281 |
var fieldset = $(this.element.closest("fieldset")); |
282 |
var fieldset_id = fieldset.attr("id"); |
283 |
//Add error message only if it doesn't already exist |
284 |
if(!$("#"+fieldset_id+"-error").length){ |
285 |
fieldset.find("legend").before('<span id="'+fieldset_id+'-error" class="required">'+error_msg+'</span>'); |
286 |
} |
287 |
}); |
288 |
} |
272 |
}); |
289 |
}); |
273 |
|
290 |
|
274 |
var mrform = $("#manual_restriction_form"); |
291 |
var mrform = $("#manual_restriction_form"); |
275 |
- |
|
|