Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2925bf29
Commit
2925bf29
authored
Oct 20, 2020
by
derek-knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BSTooltip to GlTooltip refactor
parent
ea044e31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/assets/javascripts/compare_autocomplete.js
app/assets/javascripts/compare_autocomplete.js
+2
-1
No files found.
app/assets/javascripts/compare_autocomplete.js
View file @
2925bf29
...
@@ -5,6 +5,7 @@ import { __ } from './locale';
...
@@ -5,6 +5,7 @@ import { __ } from './locale';
import
axios
from
'
./lib/utils/axios_utils
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
{
deprecatedCreateFlash
as
flash
}
from
'
./flash
'
;
import
{
deprecatedCreateFlash
as
flash
}
from
'
./flash
'
;
import
{
capitalizeFirstCharacter
}
from
'
./lib/utils/text_utility
'
;
import
{
capitalizeFirstCharacter
}
from
'
./lib/utils/text_utility
'
;
import
{
fixTitle
}
from
'
~/tooltips
'
;
import
initDeprecatedJQueryDropdown
from
'
~/deprecated_jquery_dropdown
'
;
import
initDeprecatedJQueryDropdown
from
'
~/deprecated_jquery_dropdown
'
;
export
default
function
initCompareAutocomplete
(
limitTo
=
null
,
clickHandler
=
()
=>
{})
{
export
default
function
initCompareAutocomplete
(
limitTo
=
null
,
clickHandler
=
()
=>
{})
{
...
@@ -76,7 +77,7 @@ export default function initCompareAutocomplete(limitTo = null, clickHandler = (
...
@@ -76,7 +77,7 @@ export default function initCompareAutocomplete(limitTo = null, clickHandler = (
$dropdownContainer
.
on
(
'
click
'
,
'
.dropdown-content a
'
,
e
=>
{
$dropdownContainer
.
on
(
'
click
'
,
'
.dropdown-content a
'
,
e
=>
{
$dropdown
.
prop
(
'
title
'
,
e
.
target
.
text
.
replace
(
/_+
?
/g
,
'
-
'
));
$dropdown
.
prop
(
'
title
'
,
e
.
target
.
text
.
replace
(
/_+
?
/g
,
'
-
'
));
if
(
$dropdown
.
hasClass
(
'
has-tooltip
'
))
{
if
(
$dropdown
.
hasClass
(
'
has-tooltip
'
))
{
$dropdown
.
tooltip
(
'
_fixTitle
'
);
fixTitle
(
$dropdown
);
}
}
});
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment