src/widgets/Tweet.js
changeset 989 458e9754d1cf
parent 988 eefd336335f9
child 1002 a86208b60c91
equal deleted inserted replaced
988:eefd336335f9 989:458e9754d1cf
   123                 rx,
   123                 rx,
   124                 '<span style="background: ' + this.polemics[_i].color + '">',
   124                 '<span style="background: ' + this.polemics[_i].color + '">',
   125                 '</span>'
   125                 '</span>'
   126             ]);
   126             ]);
   127         }
   127         }
   128         var rx = (_tweet.found ? (_this.source.getAnnotations().regexp || false) : false);
   128         var rx = (_tweet.found ? (_this.source.getAnnotations().regexp || false) : false),
   129         this.$.find(".Ldt-Tweet-Avatar").attr("src",_tweet.source.user.profile_image_url);
   129             profile_url = _tweet.source.user ? _tweet.source.user.profile_image_url : _tweet.source.profile_image_url,
   130         this.$.find(".Ldt-Tweet-ScreenName").html('@'+_tweet.source.user.screen_name);
   130             screen_name = _tweet.source.user ? _tweet.source.user.screen_name :_tweet.source.from_user,
   131         this.$.find(".Ldt-Tweet-ProfileLink").attr("href", "https://twitter.com/" + _tweet.source.user.screen_name);
   131             user_name = _tweet.source.user ? _tweet.source.user.name :_tweet.source.from_user_name;
   132         this.$.find(".Ldt-Tweet-FullName").html(_tweet.source.user.name);
   132         this.$.find(".Ldt-Tweet-Avatar").attr("src", profile_url);
       
   133         this.$.find(".Ldt-Tweet-ScreenName").html('@' + screen_name);
       
   134         this.$.find(".Ldt-Tweet-ProfileLink").attr("href", "https://twitter.com/" + screen_name);
       
   135         this.$.find(".Ldt-Tweet-FullName").html(user_name);
   133         this.$.find(".Ldt-Tweet-Contents").html(IriSP.textFieldHtml(_txt, rx, extend));
   136         this.$.find(".Ldt-Tweet-Contents").html(IriSP.textFieldHtml(_txt, rx, extend));
   134         this.$.find(".Ldt-Tweet-Time").html(this.l10n.original_time + new Date(_tweet.source.created_at).toLocaleTimeString() + " / " + this.l10n.video_time + _tweet.begin.toString());
   137         this.$.find(".Ldt-Tweet-Time").html(this.l10n.original_time + new Date(_tweet.source.created_at).toLocaleTimeString() + " / " + this.l10n.video_time + _tweet.begin.toString());
   135         this.$.find(".Ldt-Tweet-Retweet").attr("href", "https://twitter.com/intent/retweet?tweet_id=" + _tweet.source.id_str);
   138         this.$.find(".Ldt-Tweet-Retweet").attr("href", "https://twitter.com/intent/retweet?tweet_id=" + _tweet.source.id_str);
   136         this.$.find(".Ldt-Tweet-Reply").attr("href", "https://twitter.com/intent/tweet?in_reply_to=" + _tweet.source.id_str);
   139         this.$.find(".Ldt-Tweet-Reply").attr("href", "https://twitter.com/intent/tweet?in_reply_to=" + _tweet.source.id_str);
   137         this.$.find(".Ldt-Tweet-Original").attr("href", "https://twitter.com/" + _tweet.source.user.screen_name + "/status/" + _tweet.source.id_str);
   140         this.$.find(".Ldt-Tweet-Original").attr("href", "https://twitter.com/" + screen_name + "/status/" + _tweet.source.id_str);
   138         this.player.trigger("Annotation.minimize");
   141         this.player.trigger("Annotation.minimize");
   139         this.$.slideDown();
   142         this.$.slideDown();
   140         this.cancelTimeout();
   143         this.cancelTimeout();
   141         if (!this.pinned) {
   144         if (!this.pinned) {
   142             this.hideTimeout();
   145             this.hideTimeout();