summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/user_callout.js
diff options
context:
space:
mode:
authorSimon Knox <simon@gitlab.com>2017-03-02 21:10:39 +0000
committerAlfredo Sumaran <alfredo@gitlab.com>2017-03-02 21:10:39 +0000
commitea0520924fa4e9a00930bc2553f894725d90b0ee (patch)
treed8393febf9538cc22487d01ac704da451933a226 /app/assets/javascripts/user_callout.js
parentf0dc00d4c5ef474d19bbeea1a46e9604e129dcc3 (diff)
downloadgitlab-ce-ea0520924fa4e9a00930bc2553f894725d90b0ee.tar.gz
remove extra whitespace on dashboard projects page
Diffstat (limited to 'app/assets/javascripts/user_callout.js')
-rw-r--r--app/assets/javascripts/user_callout.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/user_callout.js b/app/assets/javascripts/user_callout.js
index 74b869502a4..99419e85b20 100644
--- a/app/assets/javascripts/user_callout.js
+++ b/app/assets/javascripts/user_callout.js
@@ -43,6 +43,8 @@ class UserCallout {
this.userCalloutBody.append($template);
$template.find(closeButton).on('click', e => this.dismissCallout(e));
$template.find(userCalloutBtn).on('click', e => this.dismissCallout(e));
+ } else {
+ this.userCalloutBody.remove();
}
}
@@ -50,7 +52,7 @@ class UserCallout {
Cookies.set(USER_CALLOUT_COOKIE, 'true');
const $currentTarget = $(e.currentTarget);
if ($currentTarget.hasClass('close-user-callout')) {
- this.userCalloutBody.empty();
+ this.userCalloutBody.remove();
}
}
}