Skip to content
Snippets Groups Projects
Commit 136a2549 authored by Austin Anderson's avatar Austin Anderson
Browse files

Dont try and load a modal if a span is available

parent bf68ed83
No related branches found
No related tags found
No related merge requests found
...@@ -102,6 +102,8 @@ $(function () { ...@@ -102,6 +102,8 @@ $(function () {
// for that commit. Also, show the matching modal if a CL is provided instead. // for that commit. Also, show the matching modal if a CL is provided instead.
if (window.location.hash.length <= 1) { if (window.location.hash.length <= 1) {
// Nothing to do if no hash in the URL // Nothing to do if no hash in the URL
} else if ($("span[id='" + window.location.hash + "']".length)) {
// Nothing to do if we're able to find a span, which is a section header
// If the hash is exactly 41 chars (hash sign # plus a 40-char sha hash), // If the hash is exactly 41 chars (hash sign # plus a 40-char sha hash),
// just show that modal. // just show that modal.
} else if (window.location.hash.length == 41) { } else if (window.location.hash.length == 41) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment