Fix table row page anchor links on API docs page.

This commit is contained in:
Rowan Hogan 2015-06-30 22:41:49 +10:00
parent 5f5694f5ce
commit 282ff1c41c

View File

@ -6381,7 +6381,7 @@ for (var i = 0, len = tables.length; i < len; i++) {
if (tds[j].cellIndex === 0) {
tds[j].parentNode.id = id + '-' + (tds[j].textContent || tds[j].innerText).split('(')[0].toLowerCase();
tds[j].parentNode.onclick = function(e) {
if ((window.innerWidth / 2) - e.clientX > 460) window.location.hash = '#' + this.id;
window.location.hash = '#' + this.id;
};
}
}