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

From version 13.62
edited by Alex Cotiugă
on 2026/05/02 07:56
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

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   });