Skip to content

Commit

Permalink
fix example not working on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doe authored and John Doe committed Jun 12, 2015
1 parent b3ff6b5 commit bb5cda6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@
var leaf = document.createElement("li");
leaf.id = (((path == "/")?"":path)+"/"+name).toLowerCase();
var label = document.createElement("span");
label.innerText = name.toLowerCase();
label.textContent = name.toLowerCase();
leaf.appendChild(label);
leaf.onclick = function(e){
if(isTextFile(leaf.id)){
Expand All @@ -403,7 +403,7 @@
leaf.appendChild(check);
var label = document.createElement("label");
label.for = check.id;
label.innerText = name.toLowerCase();
label.textContent = name.toLowerCase();
leaf.appendChild(label);
check.onchange = function(e){
if(check.checked){
Expand Down

0 comments on commit bb5cda6

Please sign in to comment.