fix json return things

This commit is contained in:
Henrique Dias committed 2015-09-14 18:41:49 +01:00
1 parent a388b6a025
commit 3b0d8380cb
2 files changed
+7 -3

No files matched your search

+4 -2
View File
@@ -8,9 +8,11 @@ $(document).ready(function() {
url : url,
data : data,
dataType : 'json',
encode : true
encode : true,
}).done(function(data) {
console.log(data);
alert("it workss");
}).fail(function(data) {
alert("it failed");
});
event.preventDefault();