client/js/twitter-bin.js
changeset 160 408da84d4dc0
parent 132 860340d4c645
child 170 603ffa4c6fa5
equal deleted inserted replaced
159:1796e0220bef 160:408da84d4dc0
     1 Rkns.Twitter = {
     1 Rkns.Twitter = {
     2 }
     2 }
     3 
     3 
     4 Rkns.Twitter.Search = function(_renkan, _opts) {
     4 Rkns.Twitter.Search = function(_renkan, _opts) {
     5 	this.renkan = _renkan;
     5     this.renkan = _renkan;
     6 	this.opts = _opts;
     6     this.opts = _opts;
     7 }
     7 }
     8 
     8 
     9 Rkns.Twitter.Search.prototype.getBgClass = function() {
     9 Rkns.Twitter.Search.prototype.getBgClass = function() {
    10 	return "Rk-Twitter-Icon";
    10     return "Rk-Twitter-Icon";
    11 }
    11 }
    12 
    12 
    13 Rkns.Twitter.Search.prototype.getSearchTitle = function() {
    13 Rkns.Twitter.Search.prototype.getSearchTitle = function() {
    14 	return this.renkan.translate("Twitter");
    14     return this.renkan.translate("Twitter");
    15 }
    15 }
    16 
    16 
    17 Rkns.Twitter.Search.prototype.search = function(_q) {
    17 Rkns.Twitter.Search.prototype.search = function(_q) {
    18     this.renkan.tabs.push(
    18     this.renkan.tabs.push(
    19         new Rkns.Twitter.Bin(this.renkan, {
    19         new Rkns.Twitter.Bin(this.renkan, {
    36     + '<a href="http://twitter.com/intent/retweet?tweet_id=<%=tweet.id_str%>" target="_blank">retweet</a> · '
    36     + '<a href="http://twitter.com/intent/retweet?tweet_id=<%=tweet.id_str%>" target="_blank">retweet</a> · '
    37     + '<a href="http://twitter.com/intent/favorite?tweet_id=<%=tweet.id_str%>" target="_blank">favorite</a></p></li>'
    37     + '<a href="http://twitter.com/intent/favorite?tweet_id=<%=tweet.id_str%>" target="_blank">favorite</a></p></li>'
    38 );
    38 );
    39 
    39 
    40 Rkns.Twitter.Bin.prototype._init = function(_renkan, _opts) {
    40 Rkns.Twitter.Bin.prototype._init = function(_renkan, _opts) {
    41 	this.renkan = _renkan;
    41     this.renkan = _renkan;
    42     this.search = _opts.search;
    42     this.search = _opts.search;
    43     this.title_icon_$.addClass('Rk-Twitter-Title-Icon');
    43     this.title_icon_$.addClass('Rk-Twitter-Title-Icon');
    44     this.title_$.html(this.search).addClass("Rk-Twitter-Title");
    44     this.title_$.html(this.search).addClass("Rk-Twitter-Title");
    45     this.refresh();
    45     this.refresh();
    46 }
    46 }