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-favorite.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'views/new-favorite.php') diff --git a/views/new-favorite.php b/views/new-favorite.php index 5ec4498..3231ab2 100644 --- a/views/new-favorite.php +++ b/views/new-favorite.php @@ -46,9 +46,7 @@ $(function(){ $.post("/favorite", { url: $("#note_url").val() - }, function(data){ - var response = JSON.parse(data); - + }, function(response){ if(response.location != false) { if(autosubmit) { -- cgit v1.2.3