Changeset 37386

Show
Ignore:
Timestamp:
05/06/10 08:15:56 (3 years ago)
Author:
NeoCat
Message:

update fav info every 15 minutes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/plugins/favotter.js

    r37235 r37386  
    11var twFavPlugin = { 
    2         cnt: 9, 
    32        fav_update: null, 
    43        favs: [], 
    5         update: function() { 
    6                 if (this.cnt++ < 5) return; 
    7                 this.cnt = 0; 
     4        updateFavs: function() { 
    85                this.fav_update = loadXDomainScript('http://twicli.neocat.jp/nr_favs.js?seq='+(seq++), this.fav_update); 
     6                setTimeout(this.updateFavs, 15*60*1000); 
    97        }, 
    108        newMessageElement: function(ele, tw) { 
     
    2624}; 
    2725registerPlugin(twFavPlugin); 
     26twFavPlugin.updateFavs(); 
    2827 
    2928function favEntries(favs) {