hide the slicerwidget when done. popcorn-port
authorhamidouk
Thu, 19 Jan 2012 12:55:30 +0100
branchpopcorn-port
changeset 683 00f37b85b2e2
parent 682 10a52271579d
child 684 9c5f6d165a0f
hide the slicerwidget when done.
src/js/widgets/createAnnotationWidget.js
--- a/src/js/widgets/createAnnotationWidget.js	Thu Jan 19 12:48:05 2012 +0100
+++ b/src/js/widgets/createAnnotationWidget.js	Thu Jan 19 12:55:30 2012 +0100
@@ -238,21 +238,20 @@
     this.showWaitScreen();
     
     this.sendLdtData(contents, function(annotation) {
-                    if (_this.cinecast_version) {
-                        if (_this._Popcorn.media.paused)
-                          _this._Popcorn.play();
-                    }
+                      if (_this.cinecast_version) {
+                          if (_this._Popcorn.media.paused)
+                            _this._Popcorn.play();
+                      }
 
-                    _this.showEndScreen(annotation);
-                    if (_this.cinecast_version) {
-                      window.setTimeout(IriSP.wrap(_this, function() { this.showStartScreen(); }), 5000);
-                    }
-                    
-                    // hide the slicer widget
-                    if (!_this.cinecast_version) {
-                      console.log("hie");
-                      this._Popcorn.trigger("IriSP.SliceWidget.hide");
-                    }                                        
+                      _this.showEndScreen(annotation);
+                      if (_this.cinecast_version) {
+                        window.setTimeout(IriSP.wrap(_this, function() { this.showStartScreen(); }), 5000);
+                      }
+                      
+                      // hide the slicer widget
+                      if (!_this.cinecast_version) {                      
+                        _this._Popcorn.trigger("IriSP.SliceWidget.hide");
+                      }           
                     });
   }
 };