Changes for page Get in Touch About Your XWiki Project
Last modified by Agnease on 2026/06/16 17:18
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- code
-
... ... @@ -16,15 +16,18 @@ 16 16 errorBox.find('.box div p').text(''); 17 17 18 18 submitButton.prop('disabled', true); 19 + console.log(form.serializeArray()) 19 19 20 20 $.post({ 21 21 url: serviceURL, 22 22 data: $.param(form.serializeArray()) 23 23 }).done(function (data) { 25 + console.log(data) 24 24 successBox.find('.box div p').text(data.message); 25 25 successBox.removeClass('hidden'); 26 26 form[0].reset(); 27 27 }).fail(function (xhr) { 30 + console.log('fail' + xhr) 28 28 var message = xhr.responseJSON && xhr.responseJSON.message ? xhr.responseJSON.message 29 29 : 'The request could not be sent. Please try again or contact Agnease by email at alex@agnease.com'; 30 30 errorBox.find('.box div p').text(message);