|
@@ -41,9 +41,7 @@ function initialiseTestForm() {
|
|
|
url: window.location,
|
|
url: window.location,
|
|
|
data: data,
|
|
data: data,
|
|
|
success: function(data, text) {
|
|
success: function(data, text) {
|
|
|
-
|
|
|
|
|
try {
|
|
try {
|
|
|
- var data = $.parseJSON(data);
|
|
|
|
|
if(!data.success && data.message) throw data.message;
|
|
if(!data.success && data.message) throw data.message;
|
|
|
else if(!data.success) throw "Please try again later.";
|
|
else if(!data.success) throw "Please try again later.";
|
|
|
|
|
|
|
@@ -66,4 +64,4 @@ function initialiseTestForm() {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
-}
|
|
|
|
|
|
|
+}
|