src/js/widgets/createAnnotationWidget.js
branchpopcorn-port
changeset 840 ac66e2240e1e
parent 838 03b03865eb9b
child 841 8da49ff273e0
--- a/src/js/widgets/createAnnotationWidget.js	Wed Mar 28 17:37:49 2012 +0200
+++ b/src/js/widgets/createAnnotationWidget.js	Fri Mar 30 18:00:26 2012 +0200
@@ -415,9 +415,9 @@
       //dataType: 'json',
       success: IriSP.wrap(this, function(json, textStatus, XMLHttpRequest) {                   
                     /* add the annotation to the annotation and tell the world */
-                    if (this.cinecast_version) {
-                        var annotation = json.annotations[0];
-                    } else {
+                    var annotation = json.annotations[0];
+                    
+                    if (!this.cinecast_version) {
                     /* if the media doesn't have a contributions line, we need to add one */
                         if (typeof(this._serializer.getContributions()) === "undefined") {
                           /* set up a basic view */