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:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-02-20 18:39:23 +0300
committerJose Ivan Vargas <jvargas@gitlab.com>2017-02-24 00:47:23 +0300
commit46eefbda3ae55394bae63872c8ff3d86500a1ddc (patch)
tree6963d814927f6205836849b8226420b79d70b7a8 /app
parentbcab4bb5efd1cc499dc7d753115fe91b98f27bda (diff)
Moved the dismiss-icon listener to close the callout to a button
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/user_callout.js4
-rw-r--r--app/views/shared/_user_callout.html.haml2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/user_callout.js b/app/assets/javascripts/user_callout.js
index 85f85674e59..9aa565074e4 100644
--- a/app/assets/javascripts/user_callout.js
+++ b/app/assets/javascripts/user_callout.js
@@ -2,7 +2,7 @@
/* global Cookies */
const userCalloutElementName = '.user-callout';
-const dismissIcon = '.dismiss-icon';
+const closeButton = '.close-user-callout';
const userCalloutBtn = '.user-callout-btn';
const USER_CALLOUT_COOKIE = 'user_callout_dismissed';
@@ -16,7 +16,7 @@ class UserCallout {
init() {
$(document)
- .on('click', dismissIcon, () => this.closeAndDismissCallout())
+ .on('click', closeButton, () => this.closeAndDismissCallout())
.on('click', userCalloutBtn, () => this.closeAndDismissCallout());
}
diff --git a/app/views/shared/_user_callout.html.haml b/app/views/shared/_user_callout.html.haml
index af8c15d8291..3f310251568 100644
--- a/app/views/shared/_user_callout.html.haml
+++ b/app/views/shared/_user_callout.html.haml
@@ -1,6 +1,6 @@
.user-callout
.bordered-box.landing.content-block
- %button.btn.btn-default.close{ type: "button" }
+ %button.btn.btn-default.close.close-user-callout{ type: "button" }
= icon("times", class: "dismiss-icon")
.row
.col-sm-3.col-xs-12.svg-container