diff options
author | Nur Rony <pro.nmrony@gmail.com> | 2016-12-23 19:58:19 +0600 |
---|---|---|
committer | Nur Rony <pro.nmrony@gmail.com> | 2016-12-31 22:35:31 +0600 |
commit | ece31cc72b8da010859554f5c6b722dd90c67372 (patch) | |
tree | f5ff667a812516f1547075732dcd27e399b670f6 | |
parent | 8f962f02c465965f5a2c15b93070e8e93e6560f7 (diff) | |
download | gitlab-ce-25580-trucate-dropdown-for-long-branch.tar.gz |
fixes js lint warnings25580-trucate-dropdown-for-long-branch
-rw-r--r-- | app/assets/javascripts/compare_autocomplete.js.es6 | 7 |
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'); } - - }) + }); }); }; |