Browse Source

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

pull/52/head
Aaron Parecki 9 years ago
parent
commit
f255179c39
  1. 3
      views/event.php
  2. 4
      views/new-bookmark.php
  3. 4
      views/new-favorite.php
  4. 3
      views/new-itinerary.php
  5. 3
      views/new-repost.php

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

4
views/new-bookmark.php

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

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

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

3
views/new-repost.php

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