Changeset 33175

Show
Ignore:
Timestamp:
05/09/09 04:57:18 (4 years ago)
Author:
NeoCat
Message:

*FFでの初期化ミス修正,自分の比フォロワ色付けを抑止

Location:
websites/twicli
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/followers.js

    r33172 r33175  
    1313        }, 
    1414        newMessageElement: function(ele, tw) { 
    15                 if (followers_ids_list.length && !followers_ids[tw.user.id]) 
     15                if (followers_ids_list.length && myid != tw.user.id && !followers_ids[tw.user.id]) 
    1616                        for (var i = 0; i  < ele.childNodes.length; i++) 
    1717                                if (ele.childNodes[i].className == "status") 
     
    2121 
    2222function twfcFollwersIDsClear() { 
    23         followers_ids = []; 
     23        followers_ids_list = followers_ids = []; 
    2424        var status = document.getElementById("followers_status"); 
    2525        if (status) status.innerHTML = "off"; 
  • websites/twicli/twicli.html

    r33173 r33175  
    217217// ユーザ認証 
    218218var myname = null; 
     219var myid = null; 
    219220var last_user = null; 
    220221function twAuth(a) { 
    221222        if (a.error) return alert(a.error); 
    222223        myname = last_user = a.screen_name; 
     224        myid = a.id; 
    223225} 
    224226</script> 
     
    438440} 
    439441// 最新タイムラインを取得 
    440 update = function() { 
     442update_inited = function() { 
    441443        callPlugins("update"); 
    442444        update_ele = loadXDomainScript(twitterURL + 'statuses/friends_timeline.json?seq=' + (seq++) + 
     
    854856        setTimeout(function(){scrollTo(0, 1)}, 0); 
    855857        // 初回アップデート 
     858        update = update_inited; // 初期化前にupdateが発生するのを防止 
    856859        setTimeout(function(){update()}, 0); 
    857860}