Show
Ignore:
Timestamp:
09/10/11 02:08:20 (3 years ago)
Author:
NeoCat
Message:

username don't contain "-"

Files:
1 modified

Legend:

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

    r38862 r38996  
    66    for (var i = 0, l = links.length; i < l; i++) { 
    77      if (/\bstatus\b/.test(links[i].parentNode.className)) { 
    8         if (re.test(links[i].href)) insertInReplyTo(links[i]); 
     8        insertInReplyTo(links[i]); 
    99      } 
    1010    } 
     
    1212 
    1313  function urlReplaced(elem, link, lng, sht) { 
    14     if (re.test(lng)) insertInReplyTo(link); 
     14    insertInReplyTo(link); 
    1515  } 
    1616 
    1717  function insertInReplyTo(a) { 
     18    if (a.tweetUrlChecked) return; 
    1819    var m = a.href.match(re); 
    1920    if (m) { 
     21      a.tweetUrlChecked = true; 
    2022      var dummy = document.createElement('div'); 
    2123      dummy.innerHTML = '<a class="button" href="#" onClick="dispReply(\'' + m[1] + '\',\'' + m[2] + '\',this); return false;"><img src="images/jump.png" alt="☞" width="14" height="14"></a>';