equal
deleted
inserted
replaced
64 + '<a href="" target="_blank" class="Ldt-Tweet-Reply"><div class="Ldt-Tweet-Icon"></div>{{l10n.reply}}</a></div></div></div>'; |
64 + '<a href="" target="_blank" class="Ldt-Tweet-Reply"><div class="Ldt-Tweet-Icon"></div>{{l10n.reply}}</a></div></div></div>'; |
65 |
65 |
66 |
66 |
67 IriSP.Widgets.Tweet.prototype.draw = function() { |
67 IriSP.Widgets.Tweet.prototype.draw = function() { |
68 this.renderTemplate(); |
68 this.renderTemplate(); |
69 this.bindPopcorn("IriSP.Tweet.show","show"); |
69 this.onMdpEvent("Tweet.show","show"); |
70 this.pinned = this.pin_at_start; |
70 this.pinned = this.pin_at_start; |
71 var _this = this; |
71 var _this = this; |
72 this.$.find(".Ldt-Tweet-Pin").click(function() { |
72 this.$.find(".Ldt-Tweet-Pin").click(function() { |
73 _this.pinned = !_this.pinned; |
73 _this.pinned = !_this.pinned; |
74 var _el = IriSP.jQuery(this) |
74 var _el = IriSP.jQuery(this) |
168 this.$.find(".Ldt-Tweet-Contents").html(_txt); |
168 this.$.find(".Ldt-Tweet-Contents").html(_txt); |
169 this.$.find(".Ldt-Tweet-Time").html(this.l10n.original_time + new Date(_tweet.source.created_at).toLocaleTimeString() + " / " + this.l10n.video_time + _tweet.begin.toString()); |
169 this.$.find(".Ldt-Tweet-Time").html(this.l10n.original_time + new Date(_tweet.source.created_at).toLocaleTimeString() + " / " + this.l10n.video_time + _tweet.begin.toString()); |
170 this.$.find(".Ldt-Tweet-Retweet").attr("href", "https://twitter.com/intent/retweet?tweet_id=" + _tweet.source.id_str); |
170 this.$.find(".Ldt-Tweet-Retweet").attr("href", "https://twitter.com/intent/retweet?tweet_id=" + _tweet.source.id_str); |
171 this.$.find(".Ldt-Tweet-Reply").attr("href", "https://twitter.com/intent/tweet?in_reply_to=" + _tweet.source.id_str); |
171 this.$.find(".Ldt-Tweet-Reply").attr("href", "https://twitter.com/intent/tweet?in_reply_to=" + _tweet.source.id_str); |
172 this.$.find(".Ldt-Tweet-Original").attr("href", "https://twitter.com/" + _tweet.source.user.screen_name + "/status/" + _tweet.source.id_str); |
172 this.$.find(".Ldt-Tweet-Original").attr("href", "https://twitter.com/" + _tweet.source.user.screen_name + "/status/" + _tweet.source.id_str); |
173 this.player.popcorn.trigger("IriSP.Annotation.minimize"); |
173 this.player.trigger("Annotation.minimize"); |
174 this.$.slideDown(); |
174 this.$.slideDown(); |
175 this.cancelTimeout(); |
175 this.cancelTimeout(); |
176 if (!this.pinned) { |
176 if (!this.pinned) { |
177 this.hideTimeout(); |
177 this.hideTimeout(); |
178 } |
178 } |
180 this.hide(); |
180 this.hide(); |
181 } |
181 } |
182 } |
182 } |
183 |
183 |
184 IriSP.Widgets.Tweet.prototype.hide = function() { |
184 IriSP.Widgets.Tweet.prototype.hide = function() { |
185 this.player.popcorn.trigger("IriSP.Annotation.maximize"); |
185 this.player.trigger("Annotation.maximize"); |
186 this.$.slideUp(); |
186 this.$.slideUp(); |
187 this.cancelTimeout(); |
187 this.cancelTimeout(); |
188 } |
188 } |
189 |
189 |
190 IriSP.Widgets.Tweet.prototype.cancelTimeout = function() { |
190 IriSP.Widgets.Tweet.prototype.cancelTimeout = function() { |