diff -r ba7aab923d08 -r ec6849bbbdcc src/js/serializers/ldt_annotate.js --- a/src/js/serializers/ldt_annotate.js Fri Jun 08 19:03:03 2012 +0200 +++ b/src/js/serializers/ldt_annotate.js Tue Jun 12 19:44:20 2012 +0200 @@ -9,6 +9,7 @@ annotation : { serialized_name : "annotations", serializer : function(_data, _source) { + var _annType = _data.getAnnotationType(); return { begin: _data.begin.milliseconds, end: _data.end.milliseconds, @@ -17,10 +18,10 @@ audio: _data.audio }, tags: _data.getTagTexts(), - media: _source.unNamespace(_data.getMedia().id), + media: _data.getMedia().id, title: _data.title, - type_title: _data.getAnnotationType().title, - type: ( typeof _data.getAnnotationType().dont_send_id !== "undefined" && _data.getAnnotationType().dont_send_id ? "" : _source.unNamespace(_data.getAnnotationType().id) ) + type_title: _annType.title, + type: ( typeof _annType.dont_send_id !== "undefined" && _annType.dont_send_id ? "" : _annType.id ) } } }