summaryrefslogtreecommitdiff
path: root/views/new-favorite.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/new-favorite.php')
-rw-r--r--views/new-favorite.php4
1 files changed, 1 insertions, 3 deletions
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) {