summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/right_sidebar.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-27 16:02:20 +0100
committerPhil Hughes <me@iamphill.com>2017-03-27 16:02:20 +0100
commit89d1a1c097df179d021168ac6f7feddbc8507b9c (patch)
tree91b2284b784599b1bf5785f727d2726406fe0049 /app/assets/javascripts/right_sidebar.js
parent04990da12a9976e7642972e24569aa62afa30c73 (diff)
downloadgitlab-ce-89d1a1c097df179d021168ac6f7feddbc8507b9c.tar.gz
Added specs for collapsed sidebar
Diffstat (limited to 'app/assets/javascripts/right_sidebar.js')
-rw-r--r--app/assets/javascripts/right_sidebar.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/assets/javascripts/right_sidebar.js b/app/assets/javascripts/right_sidebar.js
index 248101414b6..f3cd41fb4db 100644
--- a/app/assets/javascripts/right_sidebar.js
+++ b/app/assets/javascripts/right_sidebar.js
@@ -103,15 +103,15 @@ import Cookies from 'js-cookie';
.attr('data-delete-path', deletePath)
.attr('title', $el.data(`${attrPrefix}-text`));
- if ($el.hasClass('has-tooltip')) {
- $el.tooltip('fixTitle');
- }
-
- if ($el.data(`${attrPrefix}-icon`)) {
- $elText.html($el.data(`${attrPrefix}-icon`));
- } else {
- $elText.text($el.data(`${attrPrefix}-text`));
- }
+ if ($el.hasClass('has-tooltip')) {
+ $el.tooltip('fixTitle');
+ }
+
+ if ($el.data(`${attrPrefix}-icon`)) {
+ $elText.html($el.data(`${attrPrefix}-icon`));
+ } else {
+ $elText.text($el.data(`${attrPrefix}-text`));
+ }
});
};