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

Loading…
Cancel
Save