diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-02-20 09:39:23 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-02-23 15:47:23 -0600 |
commit | 46eefbda3ae55394bae63872c8ff3d86500a1ddc (patch) | |
tree | 6963d814927f6205836849b8226420b79d70b7a8 /app | |
parent | bcab4bb5efd1cc499dc7d753115fe91b98f27bda (diff) | |
download | gitlab-ce-46eefbda3ae55394bae63872c8ff3d86500a1ddc.tar.gz |
Moved the dismiss-icon listener to close the callout to a button
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/user_callout.js | 4 | ||||
-rw-r--r-- | app/views/shared/_user_callout.html.haml | 2 |
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 |