Parcourir la source

Fix test submit error

Alan Lam il y a 6 ans
Parent
commit
a23b9db768
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      public/js/app-test.js

+ 1 - 3
public/js/app-test.js

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