Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-23 15:10:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-23 15:10:26 +0300
commit5c9f6c66fabf22927e862b2b60362e4ea25b250b (patch)
tree6ff391dcb7fdd3126f71af9fa4ca5e776a9ecbe3 /app/assets/javascripts/tree.js
parent65fdda8d39a9af414dbe5aa3a385b9bcba00960b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/tree.js')
-rw-r--r--app/assets/javascripts/tree.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/assets/javascripts/tree.js b/app/assets/javascripts/tree.js
index 947246b2fbb..25a14107bbc 100644
--- a/app/assets/javascripts/tree.js
+++ b/app/assets/javascripts/tree.js
@@ -8,7 +8,7 @@ export default class TreeView {
this.initKeyNav();
// Code browser tree slider
// Make the entire tree-item row clickable, but not if clicking another link (like a commit message)
- $('.tree-content-holder .tree-item').on('click', function(e) {
+ $('.tree-content-holder .tree-item').on('click', function (e) {
const $clickedEl = $(e.target);
const path = $('.tree-item-file-name a', this).attr('href');
if (!$clickedEl.is('a') && !$clickedEl.is('.str-truncated')) {
@@ -20,9 +20,7 @@ export default class TreeView {
}
});
// Show the "Loading commit data" for only the first element
- $('span.log_loading')
- .first()
- .removeClass('hide');
+ $('span.log_loading').first().removeClass('hide');
}
initKeyNav() {