Allow the annotation serializer to extract project_id for use in some widget when it is provided in the data
authordurandn
Fri, 03 Jul 2015 16:48:41 +0200
changeset 1035 c1bc8a2b1468
parent 1034 31fd2904ec57
child 1036 3b88465041d6
Allow the annotation serializer to extract project_id for use in some widget when it is provided in the data
src/js/serializers/ldt_annotate.js
--- a/src/js/serializers/ldt_annotate.js	Mon May 04 15:36:39 2015 +0200
+++ b/src/js/serializers/ldt_annotate.js	Fri Jul 03 16:48:41 2015 +0200
@@ -17,6 +17,7 @@
             },
             tags: _data.getTagTexts(),
             media: _data.getMedia().id,
+            project: _data.project_id,
             type_title: _annType.title,
             type: ( typeof _annType.dont_send_id !== "undefined" && _annType.dont_send_id ? "" : _annType.id ),
             meta: {