summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNur Rony <pro.nmrony@gmail.com>2016-12-23 19:58:19 +0600
committerNur Rony <pro.nmrony@gmail.com>2016-12-31 22:35:31 +0600
commitece31cc72b8da010859554f5c6b722dd90c67372 (patch)
treef5ff667a812516f1547075732dcd27e399b670f6
parent8f962f02c465965f5a2c15b93070e8e93e6560f7 (diff)
downloadgitlab-ce-25580-trucate-dropdown-for-long-branch.tar.gz
-rw-r--r--app/assets/javascripts/compare_autocomplete.js.es67
1 files changed, 3 insertions, 4 deletions
diff --git a/app/assets/javascripts/compare_autocomplete.js.es6 b/app/assets/javascripts/compare_autocomplete.js.es6
index 21c7cb4e1fd..251f2ded347 100644
--- a/app/assets/javascripts/compare_autocomplete.js.es6
+++ b/app/assets/javascripts/compare_autocomplete.js.es6
@@ -56,13 +56,12 @@
$dropdownContainer.removeClass('open');
});
- $dropdownContainer.on('click' , '.dropdown-content a', (e) => {
- $dropdown.prop('title', e.target.text.replace(/_+?/g,'-'));
+ $dropdownContainer.on('click', '.dropdown-content a', (e) => {
+ $dropdown.prop('title', e.target.text.replace(/_+?/g, '-'));
if ($dropdown.hasClass('has-tooltip')) {
$dropdown.tooltip('fixTitle');
}
-
- })
+ });
});
};