don't hide the widget. cap-demo
authorhamidouk
Mon, 05 Dec 2011 15:54:09 +0100
branchcap-demo
changeset 411 d5d6e98a95d3
parent 410 de8fdd68930f
child 412 d1fbfb7adeea
don't hide the widget.
src/js/widgets/tweetsView.js
--- a/src/js/widgets/tweetsView.js	Mon Dec 05 15:53:49 2011 +0100
+++ b/src/js/widgets/tweetsView.js	Mon Dec 05 15:54:09 2011 +0100
@@ -29,45 +29,13 @@
 
   this.drawTweet(annotation);
 
-  var time = this._Popcorn.currentTime();  
-  this._timeoutId = window.setTimeout(IriSP.wrap(this, this.clearPanel), IriSP.widgetsDefaults.TweetsWidget.tweet_display_period);
-};
-
-
-IriSP.TweetsView.prototype.clearPanel = function() {  
-    this._displayingTweet = false;
-    this._timeoutId = undefined;
-    this.closePanel();
-    
 };
 
-IriSP.TweetsView.prototype.closePanel = function() {
-    if (this._timeoutId != undefined) {
-      /* we're called from the "close window" link */
-      /* cancel the timeout */
-      window.clearTimeout(this._timeoutId);
-      this._timeoutId = null;
-    }
-    
-    this.selector.hide("blind", 400);
-    
-};
-
-/* cancel the timeout if the user clicks on the keep panel open button */
-IriSP.TweetsView.prototype.keepPanel = function() {
-    if (this._timeoutId != undefined) {
-      /* we're called from the "close window" link */
-      /* cancel the timeout */
-      window.clearTimeout(this._timeoutId);
-      this._timeoutId = null;
-    }
-};
 
 IriSP.TweetsView.prototype.draw = function() {
   var _this = this;
   
   this.selector.append(Mustache.to_html(IriSP.polemicAnnotationView_template, {}));
-  this.selector.hide();
   this._Popcorn.listen("IriSP.PolemicTweet.click", IriSP.wrap(this, this.PolemicTweetClickHandler));
 };