Changeset 1107

Show
Ignore:
Timestamp:
11/04/07 20:00:33 (6 years ago)
Author:
gyuque
Message:

websites/coderepos.org/share/js/HatenaStarTrac.js: create stars asynchronous

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/coderepos.org/trac/share/js/HatenaStarTrac.js

    r1104 r1107  
    1919} 
    2020 
     21Hatena.Star.Entry.prototype.showStarsSuper = Hatena.Star.Entry.prototype.showStars; 
     22Hatena.Star.Entry.prototype.showStars = function() { 
     23        if (this.showStarsAsync) 
     24                this.showStarsSuper(); 
     25        else 
     26                this.showStarsAsync = this.showStarsSuper; 
     27}, 
     28 
    2129Hatena.Star.Entry.Progressive = function(list, itv, step) { 
    2230        this.list = list; 
     
    5462                pr.proc = function(e) { 
    5563                        e.addAddButton(); 
    56                         e.addCommentButton();                    
     64                        e.addCommentButton(); 
     65                        if (e.showStarsAsync) 
     66                                e.showStarsAsync(); 
     67                        else 
     68                                e.showStarsAsync = true; 
    5769                } 
    5870                pr.next();