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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'content/frontend')
-rw-r--r--content/frontend/bundles/default.js2
-rw-r--r--content/frontend/bundles/feedback.js2
-rw-r--r--content/frontend/components/navigation_toggle/navigation_toggle.vue1
3 files changed, 3 insertions, 2 deletions
diff --git a/content/frontend/bundles/default.js b/content/frontend/bundles/default.js
index fa5e6e50..6dc131a7 100644
--- a/content/frontend/bundles/default.js
+++ b/content/frontend/bundles/default.js
@@ -9,6 +9,7 @@ document.addEventListener(
const isOutdated = versionBanner.hasAttribute('data-is-outdated');
const { latestVersionUrl, archivesUrl } = versionBanner.dataset;
+ // eslint-disable-next-line no-new
new Vue({
el: versionBanner,
components: {
@@ -21,6 +22,7 @@ document.addEventListener(
},
});
+ // eslint-disable-next-line no-new
new Vue({
el: '#js-nav-toggle',
components: {
diff --git a/content/frontend/bundles/feedback.js b/content/frontend/bundles/feedback.js
index 88d35714..7245b90e 100644
--- a/content/frontend/bundles/feedback.js
+++ b/content/frontend/bundles/feedback.js
@@ -4,7 +4,7 @@ document.addEventListener(
const hasCommentAnchor = window.location.hash.includes('#comment-');
if(hasCommentAnchor) {
- loadDisqus();
+ window.loadDisqus();
}
}
);
diff --git a/content/frontend/components/navigation_toggle/navigation_toggle.vue b/content/frontend/components/navigation_toggle/navigation_toggle.vue
index 29673abc..2243dc87 100644
--- a/content/frontend/components/navigation_toggle/navigation_toggle.vue
+++ b/content/frontend/components/navigation_toggle/navigation_toggle.vue
@@ -11,7 +11,6 @@ export default {
const target = document.querySelector(this.targetSelector);
if(!target) {
- console.warn('No target found for selector > ', this.targetSelector);
return;
}