equal
deleted
inserted
replaced
17 return; |
17 return; |
18 |
18 |
19 var title = IriSP.formatTweet(annotation.content.title); |
19 var title = IriSP.formatTweet(annotation.content.title); |
20 var img = annotation.content.img.src; |
20 var img = annotation.content.img.src; |
21 if (typeof(img) === "undefined" || img === "" || img === "None") { |
21 if (typeof(img) === "undefined" || img === "" || img === "None") { |
22 img = IriSP.widgetsDefaults.TweetsWidget.default_profile_picture; |
22 img = this.default_profile_picture; |
23 } |
23 } |
24 |
24 |
25 var imageMarkup = IriSP.templToHTML("<img src='{{src}}' alt='user image'></img>", |
25 var imageMarkup = IriSP.templToHTML("<img src='{{src}}' alt='user image'></img>", |
26 {src : img}); |
26 {src : img}); |
27 |
27 |
61 } |
61 } |
62 |
62 |
63 this.drawTweet(annotation); |
63 this.drawTweet(annotation); |
64 |
64 |
65 var time = this._Popcorn.currentTime(); |
65 var time = this._Popcorn.currentTime(); |
66 this._timeoutId = window.setTimeout(IriSP.wrap(this, this.clearPanel), IriSP.widgetsDefaults.TweetsWidget.tweet_display_period); |
66 this._timeoutId = window.setTimeout(IriSP.wrap(this, this.clearPanel), this.tweet_display_period); |
67 }; |
67 }; |
68 |
68 |
69 |
69 |
70 IriSP.TweetsWidget.prototype.clearPanel = function() { |
70 IriSP.TweetsWidget.prototype.clearPanel = function() { |
71 this._displayingTweet = false; |
71 this._displayingTweet = false; |