mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
Gitweb: make line number toggling work for Firefox and Safari
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
1f992affa7
commit
4e77219088
|
@ -4282,7 +4282,9 @@ sub git_print_page_path {
|
|||
e2.innerHTML = "[Hide line numbers]";
|
||||
}
|
||||
}
|
||||
document.getElementsByTagName("head")[0].innerHTML += "<style id=\'lineNoStyle\'></style>";
|
||||
var style = document.createElement("style");
|
||||
style.setAttribute("id", "lineNoStyle");
|
||||
document.getElementsByTagName("head")[0].appendChild(style);
|
||||
toggleLineNumbers();
|
||||
</script>
|
||||
';
|
||||
|
|
Loading…
Reference in a new issue