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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
909f1c93
Commit
909f1c93
authored
Apr 17, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate tooltip instantiation
parent
4e404b3b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
app/assets/javascripts/commons/bootstrap.js
app/assets/javascripts/commons/bootstrap.js
+0
-3
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+1
-2
No files found.
app/assets/javascripts/commons/bootstrap.js
View file @
909f1c93
...
...
@@ -10,6 +10,3 @@ $.fn.extend({
disable
()
{
return
$
(
this
).
prop
(
'
disabled
'
,
true
).
addClass
(
'
disabled
'
);
},
enable
()
{
return
$
(
this
).
prop
(
'
disabled
'
,
false
).
removeClass
(
'
disabled
'
);
},
});
// Enable Bootstrap tooltips
$
(
'
[data-toggle="tooltip"]
'
).
tooltip
();
app/assets/javascripts/main.js
View file @
909f1c93
...
...
@@ -136,8 +136,7 @@ document.addEventListener('DOMContentLoaded', () => {
});
// Initialize tooltips
$body
.
tooltip
({
selector
:
'
.has-tooltip, [data-toggle="tooltip"]
'
,
$
(
'
.has-tooltip, [data-toggle="tooltip"]
'
).
tooltip
({
placement
(
tip
,
el
)
{
return
$
(
el
).
data
(
'
placement
'
)
||
'
bottom
'
;
},
...
...
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