Browse Source

fix JSON syntax for reviews

pull/82/head
Aaron Parecki 8 years ago
parent
commit
bd535204e4
No known key found for this signature in database GPG Key ID: 276C2817346D6056
  1. 4
      views/review.php

4
views/review.php

@ -211,7 +211,7 @@ $(function(){
var review = { var review = {
item: [{ item: [{
type: "h-product",
type: ["h-product"],
properties: { properties: {
name: [$("#item_name").val()], name: [$("#item_name").val()],
url: [$("#item_url").val()] url: [$("#item_url").val()]
@ -232,7 +232,7 @@ $(function(){
$.post("/micropub/postjson", { $.post("/micropub/postjson", {
data: JSON.stringify({ data: JSON.stringify({
"type": "h-review",
"type": ["h-review"],
"properties": review "properties": review
}) })
}, function(response){ }, function(response){

Loading…
Cancel
Save