Browse Source

don't need to json.parse when the content type header is right

pull/52/head
Aaron Parecki 8 years ago
parent
commit
f255179c39
5 changed files with 5 additions and 12 deletions
  1. +1
    -2
      views/event.php
  2. +1
    -3
      views/new-bookmark.php
  3. +1
    -3
      views/new-favorite.php
  4. +1
    -2
      views/new-itinerary.php
  5. +1
    -2
      views/new-repost.php

+ 1
- 2
views/event.php View File

@ -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');

+ 1
- 3
views/new-bookmark.php View File

@ -80,9 +80,7 @@ $(function(){
content: $("#note_content").val(),
category: csv_to_array($("#note_category").val()),
'syndicate-to': syndications
}, function(data){
var response = JSON.parse(data);
}, function(response){
if(response.location != false) {
$("#test_success").removeClass('hidden');

+ 1
- 3
views/new-favorite.php View File

@ -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) {

+ 1
- 2
views/new-itinerary.php View File

@ -185,8 +185,7 @@ $(function(){
"category": category
}
})
}, function(data){
var response = JSON.parse(data);
}, function(response){
if(response.location != false) {
$("#test_success").removeClass('hidden');

+ 1
- 2
views/new-repost.php View File

@ -30,8 +30,7 @@ $(function(){
$.post("/repost", {
url: $("#note_url").val()
}, function(data){
var response = JSON.parse(data);
}, function(response){
if(response.location != false) {

Loading…
Cancel
Save