Merge pull request #218 from levito/patch-2

only update floatingTitle innerHTML if active article changes
master
Andrew Dolgov 12 years ago
commit 0a561a4371

@ -2208,9 +2208,10 @@ function updateFloatingTitle() {
var header = child.getElementsByClassName("cdmHeader")[0];
if (child.id != $("floatingTitle").getAttribute("rowid")) {
$("floatingTitle").setAttribute("rowid", child.id);
$("floatingTitle").innerHTML =
header.innerHTML;
$("floatingTitle").innerHTML = header.innerHTML;
}
if (child.offsetTop < hf.scrollTop - header.offsetHeight - 100 &&
child.offsetTop + child.offsetHeight - hf.scrollTop > 100)

Loading…
Cancel
Save