Last modified by Alex Cotiugă on 2026/05/02 12:23

From version 13.85
edited by Alex Cotiugă
on 2026/05/02 08:12
Change comment: There is no comment for this version
To version 13.84
edited by Alex Cotiugă
on 2026/05/02 08:11
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
code
... ... @@ -6,9 +6,6 @@
6 6   var successBox = $('.reviewNotificationSuccess');
7 7   var errorBox = $('.reviewNotificationError');
8 8  
9 - var nameFieldName = 'Agnease.Code.ContactForm.ContactFormClass_0_name';
10 - var emailFieldName = 'Agnease.Code.ContactForm.ContactFormClass_0_email';
11 -
12 12   function getFormData() {
13 13   var data = {};
14 14  
... ... @@ -26,10 +26,10 @@
26 26  
27 27   function updateSubmitState() {
28 28   var data = getFormData();
29 - var name = $.trim(data[nameFieldName] || '');
30 - var email = $.trim(data[emailFieldName] || '');
26 + /*var name = $.trim(data[fields.name] || '');
27 + var email = $.trim(data[fields.email] || '');
31 31  
32 - submitButton.prop('disabled', !(name.length > 0 && isValidEmail(email)));
29 + submitButton.prop('disabled', !(name.length > 0 && isValidEmail(email)));*/
33 33   }
34 34  
35 35   form.on('input change keyup', 'input, textarea, select', updateSubmitState);