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

From version 13.90
edited by Alex Cotiugă
on 2026/05/02 08:15
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

Page properties
Content
... ... @@ -5,7 +5,7 @@
5 5  #set ($editing = true)
6 6  = Tell Us More About Your Project =
7 7  You do not need to have a full specification. A short description is enough to start the conversation.
8 -{{html clean="false" wiki="true"}}
8 +{{html clean="false"}}
9 9   <div class="row">
10 10   <div class="xform col-xs-7">
11 11   <form id="contactForm">
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);
... ... @@ -39,11 +39,9 @@
39 39   event.preventDefault();
40 40  
41 41   var data = getFormData();
42 -
43 - console.log(data)
44 44  
45 45   submitButton.prop('disabled', true);
46 -/*
41 +
47 47   $.post({
48 48   url: serviceURL,
49 49   data: data
... ... @@ -65,6 +65,6 @@
65 65   successBox.toggleClass('hidden');
66 66   }
67 67   submitButton.prop('disabled', false);
68 - });*/
63 + });
69 69   });
70 70  });