src/js/widgets/createAnnotationWidget.js
branchpopcorn-port
changeset 832 6397a2ca3a67
parent 831 0dd21c298380
child 833 33a5d5882be4
equal deleted inserted replaced
831:0dd21c298380 832:6397a2ca3a67
   233 
   233 
   234 IriSP.createAnnotationWidget.prototype.showErrorScreen = function() {
   234 IriSP.createAnnotationWidget.prototype.showErrorScreen = function() {
   235   this.selector.find(".Ldt-createAnnotation-screen").hide();
   235   this.selector.find(".Ldt-createAnnotation-screen").hide();
   236   this.selector.find(".Ldt-createAnnotation-errorScreen").show();
   236   this.selector.find(".Ldt-createAnnotation-errorScreen").show();
   237   this._state = "errorScreen";
   237   this._state = "errorScreen";
       
   238   var _this = this;
       
   239   window.setTimeout(function() { _this.showStartScreen(); }, 2000);
   238 };
   240 };
   239 
   241 
   240 /** update show the final screen with links to share the created annotation */
   242 /** update show the final screen with links to share the created annotation */
   241 IriSP.createAnnotationWidget.prototype.showEndScreen = function(annotation) {
   243 IriSP.createAnnotationWidget.prototype.showEndScreen = function(annotation) {
   242   this.selector.find(".Ldt-createAnnotation-screen").hide();
   244   this.selector.find(".Ldt-createAnnotation-screen").hide();
   291                       }
   293                       }
   292 
   294 
   293                       if (_this._state == "waitScreen") {
   295                       if (_this._state == "waitScreen") {
   294                         _this.showEndScreen(annotation);
   296                         _this.showEndScreen(annotation);
   295                         if (_this.cinecast_version) {
   297                         if (_this.cinecast_version) {
   296                           window.setTimeout(IriSP.wrap(_this, function() { this.showStartScreen(); }), 5000);
   298                           window.setTimeout(function() { _this.showStartScreen(); }, 5000);
   297                         }
   299                         }
   298                       }
   300                       }
   299                       // hide the slicer widget
   301                       // hide the slicer widget
   300                       if (!_this.cinecast_version) {                      
   302                       if (!_this.cinecast_version) {                      
   301                         _this._Popcorn.trigger("IriSP.SliceWidget.hide");
   303                         _this._Popcorn.trigger("IriSP.SliceWidget.hide");