From f255179c39211a159932ca3f8a2738b3c943f09d Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Fri, 20 May 2016 08:09:32 -0700 Subject: don't need to json.parse when the content type header is right --- views/new-itinerary.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'views/new-itinerary.php') diff --git a/views/new-itinerary.php b/views/new-itinerary.php index 7020e10..4f07476 100644 --- a/views/new-itinerary.php +++ b/views/new-itinerary.php @@ -185,8 +185,7 @@ $(function(){ "category": category } }) - }, function(data){ - var response = JSON.parse(data); + }, function(response){ if(response.location != false) { $("#test_success").removeClass('hidden'); -- cgit v1.2.3