src/js/serializers/ldt_annotate.js
changeset 1013 392ddcd212d7
parent 998 9521347ede1d
child 1035 c1bc8a2b1468
equal deleted inserted replaced
1012:7e18d953a1f8 1013:392ddcd212d7
    21             type: ( typeof _annType.dont_send_id !== "undefined" && _annType.dont_send_id ? "" : _annType.id ),
    21             type: ( typeof _annType.dont_send_id !== "undefined" && _annType.dont_send_id ? "" : _annType.id ),
    22             meta: {
    22             meta: {
    23                 created: _data.created,
    23                 created: _data.created,
    24                 creator: _data.creator
    24                 creator: _data.creator
    25             }
    25             }
    26         }
    26         };
    27     },
    27     },
    28     deserializeAnnotation : function(_anndata, _source) {
    28     deserializeAnnotation : function(_anndata, _source) {
    29         var _ann = new IriSP.Model.Annotation(_anndata.id, _source);
    29         var _ann = new IriSP.Model.Annotation(_anndata.id, _source);
    30         _ann.description = _anndata.content.description || "";
    30         _ann.description = _anndata.content.description || "";
    31         _ann.title = _anndata.content.title || "";
    31         _ann.title = _anndata.content.title || "";