Changeset 39078

Show
Ignore:
Timestamp:
11/29/11 14:47:30 (18 months ago)
Author:
NeoCat
Message:

translate.js: use textContent unless IE

Files:
1 modified

Legend:

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

    r39077 r39078  
    3838 
    3939        rep_top = cumulativeOffset(target)[1] + 20; 
    40         $('reps').innerText = result; 
     40        if (document.all) 
     41                $('reps').innerText = result; 
     42        else 
     43                $('reps').textContent = result; 
    4144        $('rep').style.display = "block"; 
    4245        $('rep').style.top = rep_top;