diff options
author | Aaron Parecki <aaron@parecki.com> | 2016-05-20 08:09:32 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2016-05-20 08:09:32 -0700 |
commit | f255179c39211a159932ca3f8a2738b3c943f09d (patch) | |
tree | 367f3cdabff7b6c7367a5684325a948abece6982 /views/event.php | |
parent | bc2ce00d55741de7c91d41dd3bc6e8e515c3f9e9 (diff) |
don't need to json.parse when the content type header is right
Diffstat (limited to 'views/event.php')
-rw-r--r-- | views/event.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/views/event.php b/views/event.php index ff11678..1a11681 100644 --- a/views/event.php +++ b/views/event.php @@ -81,8 +81,7 @@ "type": "h-event", "properties": properties }) - }, function(data){ - var response = JSON.parse(data); + }, function(response){ if(response.location != false) { $("#test_success").removeClass('hidden'); |