fixed creation bug. popcorn-port
authorhamidouk
Tue, 10 Jan 2012 16:45:20 +0100
branchpopcorn-port
changeset 606 13675511a01a
parent 605 e1a6f73038b4
child 607 0b94ae49efbd
fixed creation bug.
src/js/widgets/createAnnotationWidget.js
--- a/src/js/widgets/createAnnotationWidget.js	Tue Jan 10 16:09:30 2012 +0100
+++ b/src/js/widgets/createAnnotationWidget.js	Tue Jan 10 16:45:20 2012 +0100
@@ -211,12 +211,13 @@
                 dataType: 'json',
                 success: function(json, textStatus, XMLHttpRequest) {
                     /* add the annotation to the annotations and tell the world */
-
                     delete annotation.tags;
                     annotation.content.description = annotation.content.data;
                     delete annotation.content.data;
                     annotation.id = json.annotations[0].id;
                     annotation.title = _this._currentAnnotation.content.title;
+                    annotation.meta = meta;
+                    annotation.meta["id-ref"] = annotation["type"];
                     // everything is shared so there's no need to propagate the change
                     _this._serializer._data.annotations.push(annotation);
                     _this._Popcorn.trigger("IriSP.createAnnotationWidget.addedAnnotation");