Skip to content

Commit

Permalink
#1 fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
earshinov committed Dec 17, 2016
1 parent 795547a commit 20e367c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tocit.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ function f() {
hideDiv.setAttribute('class', 'hideBtn');
var hideLink = document.createElement('a');
hideLink.setAttribute("href", "#");
hideLink.onclick = function() {
document.getElementById('js-toc').style.display = 'none';
return false;
};
hideLink.setAttribute("onclick", "document.getElementById('js-toc').style.display = 'none'; return false;");
hideLink.appendChild(document.createTextNode(hideBtnText));
hideDiv.appendChild(hideLink);
toc.appendChild(hideDiv);
Expand Down

0 comments on commit 20e367c

Please sign in to comment.