summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-16 19:05:45 -0500
committerDouwe Maan <douwe@selenight.nl>2017-05-16 19:05:45 -0500
commit0f902f7e8780825b8cb32cabb9b5b6b1c6c697b7 (patch)
tree5a23fe6b0780d7ff61c9eb34ed2494c48830d729
parent67312fceaa69abb2bc88aa62601625e9f6a62270 (diff)
downloadgitlab-ce-0f902f7e8780825b8cb32cabb9b5b6b1c6c697b7.tar.gz
Scroll to anchor when blob content is loadeddm-scroll-to-blob-user-content
-rw-r--r--app/assets/javascripts/blob/viewer/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/blob/viewer/index.js b/app/assets/javascripts/blob/viewer/index.js
index 849da633c89..54b85e47358 100644
--- a/app/assets/javascripts/blob/viewer/index.js
+++ b/app/assets/javascripts/blob/viewer/index.js
@@ -114,6 +114,7 @@ export default class BlobViewer {
$(viewer).syntaxHighlight();
this.$fileHolder.trigger('highlight:line');
+ gl.utils.handleLocationHash();
this.toggleCopyButtonState();
})