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
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-02-19 11:46:11 +0300
committerPhil Hughes <me@iamphill.com>2019-02-19 11:46:11 +0300
commit0e07a5aaa5d715e16f5af72f7d93a0597d66ff43 (patch)
treea892524bf07dd0a462b457a944b93d2ec5c6ed62 /app
parent5ff775fdef99eeec1f25bea7baf5480fa402f714 (diff)
Fixes some requests not being tracked in performance bar
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57886
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js
index 63db4938cd7..1b722c0505a 100644
--- a/app/assets/javascripts/main.js
+++ b/app/assets/javascripts/main.js
@@ -78,7 +78,6 @@ function deferredInitialisation() {
initUserPopovers();
if (document.querySelector('.search')) initSearchAutocomplete();
- if (document.querySelector('#js-peek')) initPerformanceBar({ container: '#js-peek' });
addSelectOnFocusBehaviour('.js-select-on-focus');
@@ -145,6 +144,8 @@ document.addEventListener('DOMContentLoaded', () => {
const $sidebarGutterToggle = $('.js-sidebar-toggle');
let bootstrapBreakpoint = bp.getBreakpointSize();
+ if (document.querySelector('#js-peek')) initPerformanceBar({ container: '#js-peek' });
+
initLayoutNav();
// Set the default path for all cookies to GitLab's root directory