src/js/serializers/ldt_annotate.js
changeset 1045 b06345320ffb
parent 1035 c1bc8a2b1468
child 1068 7623f9af9272
equal deleted inserted replaced
1044:d8339b45edc4 1045:b06345320ffb
    13             content: {
    13             content: {
    14                 description: _data.description,
    14                 description: _data.description,
    15                 title: _data.title,
    15                 title: _data.title,
    16                 audio: _data.audio
    16                 audio: _data.audio
    17             },
    17             },
       
    18             id: _data.id ? _data.id : "", // If annotation is new, id will be undefined
    18             tags: _data.getTagTexts(),
    19             tags: _data.getTagTexts(),
    19             media: _data.getMedia().id,
    20             media: _data.getMedia().id,
    20             project: _data.project_id,
    21             project: _data.project_id,
    21             type_title: _annType.title,
    22             type_title: _annType.title,
    22             type: ( typeof _annType.dont_send_id !== "undefined" && _annType.dont_send_id ? "" : _annType.id ),
    23             type: ( typeof _annType.dont_send_id !== "undefined" && _annType.dont_send_id ? "" : _annType.id ),