test/post-test.php
author durandn
Tue, 22 Sep 2015 12:04:36 +0200
changeset 1061 7d22bfd6b73b
parent 931 0fdce6e14748
permissions -rw-r--r--
CreateAnnotation: now triggering events for hiding and showing widget after submitting to make it easier for other widgets to catch these events

<?php

$data = json_decode(file_get_contents("php://input"));

if (!isset($data->annotations[0]->id)) {
    $data->annotations[0]->id = uniqid("annotation_");
}

if (!isset($data->annotations[0]->type)) {
    $data->annotations[0]->type = uniqid("annotationType_");
}

print_r(json_encode($data));

?>