Changeset 3371

Show
Ignore:
Timestamp:
12/20/07 21:06:13 (6 years ago)
Author:
cho45
Message:

lang/javascript/userscripts/hatena.haiku.expandrepliestree.user.js:

loading を expand の位置にも表示するように

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/hatena.haiku.expandrepliestree.user.js

    r3369 r3371  
    8181                var es = $X("//li[@class='entry' and .//span[@class='timestamp']/a[@href = '"+raw_href+"']]"); 
    8282 
    83                 // remove expand link 
    8483                $X(".//span[@class='expand']", entry).forEach(function (e) { 
    85                         e.parentNode.removeChild(e); 
     84                        e.innerHTML = "Loading..."; 
    8685                }); 
    8786                return parallel([ 
     
    9190                                return parallel($X(".//ul[@class='list']/li[@class='entry']", t).map(appendAndLoadNext)); 
    9291                        }), 
    93                 ]); 
     92                ]). 
     93                next(function () { 
     94                        $X(".//span[@class='expand']", entry).forEach(function (e) { 
     95                                e.parentNode.removeChild(e); 
     96                        }); 
     97                }); 
    9498 
    9599                function appendAndLoadNext (e) {