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

From version 13.64
edited by Alex Cotiugă
on 2026/05/02 07:57
Change comment: There is no comment for this version
To version 13.60
edited by Alex Cotiugă
on 2026/05/02 07:40
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -62,18 +62,6 @@
62 62   <li>If useful, we schedule a short call to discuss scope, timeline, and estimated effort.</li>
63 63   </ol>
64 64   </div>
65 - <div class="reviewNotifications">
66 - <div class="hidden reviewNotificationSuccess">
67 -
68 - {{success}}reviewNotification{{/success}}
69 -
70 - </div>
71 - <div class="hidden reviewNotificationError">
72 -
73 - {{error}}reviewNotification{{/error}}
74 -
75 - </div>
76 - </div>
77 77   </div>
78 78   </div>
79 79  {{/html}}
XWiki.JavaScriptExtension[0]
code
... ... @@ -22,9 +22,10 @@
22 22  
23 23   $.post({
24 24   url: serviceURL,
25 - data: data
25 + data: data,
26 + dataType: 'json'
26 26   }).done(function (response) {
27 - // replace with succcess message alert(response.message || 'Your request was sent successfully.');
28 + alert(response.message || 'Your request was sent successfully.');
28 28   form[0].reset();
29 29   }).fail(function (xhr) {
30 30   var message = 'The request could not be sent. Please try again or contact Agnease by email.';
... ... @@ -35,7 +35,7 @@
35 35   message = xhr.responseText;
36 36   }
37 37  
38 - // replace with error box message alert(message);
39 + alert(message);
39 39   submitButton.prop('disabled', false);
40 40   });
41 41   });