Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
1abb7947
Commit
1abb7947
authored
Aug 10, 2013
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #9222
parent
7998c455
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
23 deletions
+23
-23
dist/js/bootstrap.js
dist/js/bootstrap.js
+11
-11
dist/js/bootstrap.min.js
dist/js/bootstrap.min.js
+1
-1
js/popover.js
js/popover.js
+1
-5
js/tooltip.js
js/tooltip.js
+10
-6
No files found.
dist/js/bootstrap.js
View file @
1abb7947
...
@@ -1160,16 +1160,20 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
...
@@ -1160,16 +1160,20 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
return
options
return
options
}
}
Tooltip
.
prototype
.
enter
=
function
(
obj
)
{
Tooltip
.
prototype
.
getDelegateOptions
=
function
()
{
var
defaults
=
this
.
getDefaults
()
var
options
=
{}
var
options
=
{}
var
defaults
=
this
.
getDefaults
()
this
.
_options
&&
$
.
each
(
this
.
_options
,
function
(
key
,
value
)
{
this
.
_options
&&
$
.
each
(
this
.
_options
,
function
(
key
,
value
)
{
if
(
defaults
[
key
]
!=
value
)
options
[
key
]
=
value
if
(
defaults
[
key
]
!=
value
)
options
[
key
]
=
value
})
})
return
options
}
Tooltip
.
prototype
.
enter
=
function
(
obj
)
{
var
self
=
obj
instanceof
this
.
constructor
?
var
self
=
obj
instanceof
this
.
constructor
?
obj
:
$
(
obj
.
currentTarget
)[
this
.
type
](
options
).
data
(
'
bs.
'
+
this
.
type
)
obj
:
$
(
obj
.
currentTarget
)[
this
.
type
](
this
.
getDelegateOptions
()
).
data
(
'
bs.
'
+
this
.
type
)
clearTimeout
(
self
.
timeout
)
clearTimeout
(
self
.
timeout
)
...
@@ -1183,7 +1187,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
...
@@ -1183,7 +1187,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
Tooltip
.
prototype
.
leave
=
function
(
obj
)
{
Tooltip
.
prototype
.
leave
=
function
(
obj
)
{
var
self
=
obj
instanceof
this
.
constructor
?
var
self
=
obj
instanceof
this
.
constructor
?
obj
:
$
(
obj
.
currentTarget
)[
this
.
type
](
this
.
_options
).
data
(
'
bs.
'
+
this
.
type
)
obj
:
$
(
obj
.
currentTarget
)[
this
.
type
](
this
.
getDelegateOptions
()
).
data
(
'
bs.
'
+
this
.
type
)
clearTimeout
(
self
.
timeout
)
clearTimeout
(
self
.
timeout
)
...
@@ -1408,7 +1412,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
...
@@ -1408,7 +1412,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
}
}
Tooltip
.
prototype
.
toggle
=
function
(
e
)
{
Tooltip
.
prototype
.
toggle
=
function
(
e
)
{
var
self
=
e
?
$
(
e
.
currentTarget
)[
this
.
type
](
this
.
_options
).
data
(
'
bs.
'
+
this
.
type
)
:
this
var
self
=
e
?
$
(
e
.
currentTarget
)[
this
.
type
](
this
.
getDelegateOptions
()
).
data
(
'
bs.
'
+
this
.
type
)
:
this
self
.
tip
().
hasClass
(
'
in
'
)
?
self
.
leave
(
self
)
:
self
.
enter
(
self
)
self
.
tip
().
hasClass
(
'
in
'
)
?
self
.
leave
(
self
)
:
self
.
enter
(
self
)
}
}
...
@@ -1506,13 +1510,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
...
@@ -1506,13 +1510,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
$tip
.
removeClass
(
'
fade top bottom left right in
'
)
$tip
.
removeClass
(
'
fade top bottom left right in
'
)
// Hide empty titles
//
// IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
// IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
// this manually by checking the contents.
// this manually by checking the contents.
if
(
$tip
.
find
(
'
.popover-title
'
).
html
()
===
''
)
{
if
(
!
$tip
.
find
(
'
.popover-title
'
).
html
())
$tip
.
find
(
'
.popover-title
'
).
hide
()
$tip
.
find
(
'
.popover-title
'
).
hide
();
}
}
}
Popover
.
prototype
.
hasContent
=
function
()
{
Popover
.
prototype
.
hasContent
=
function
()
{
...
...
dist/js/bootstrap.min.js
View file @
1abb7947
This diff is collapsed.
Click to expand it.
js/popover.js
View file @
1abb7947
...
@@ -58,13 +58,9 @@
...
@@ -58,13 +58,9 @@
$tip
.
removeClass
(
'
fade top bottom left right in
'
)
$tip
.
removeClass
(
'
fade top bottom left right in
'
)
// Hide empty titles
//
// IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
// IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
// this manually by checking the contents.
// this manually by checking the contents.
if
(
$tip
.
find
(
'
.popover-title
'
).
html
()
===
''
)
{
if
(
!
$tip
.
find
(
'
.popover-title
'
).
html
())
$tip
.
find
(
'
.popover-title
'
).
hide
()
$tip
.
find
(
'
.popover-title
'
).
hide
();
}
}
}
Popover
.
prototype
.
hasContent
=
function
()
{
Popover
.
prototype
.
hasContent
=
function
()
{
...
...
js/tooltip.js
View file @
1abb7947
...
@@ -91,16 +91,20 @@
...
@@ -91,16 +91,20 @@
return
options
return
options
}
}
Tooltip
.
prototype
.
enter
=
function
(
obj
)
{
Tooltip
.
prototype
.
getDelegateOptions
=
function
()
{
var
defaults
=
this
.
getDefaults
()
var
options
=
{}
var
options
=
{}
var
defaults
=
this
.
getDefaults
()
this
.
_options
&&
$
.
each
(
this
.
_options
,
function
(
key
,
value
)
{
this
.
_options
&&
$
.
each
(
this
.
_options
,
function
(
key
,
value
)
{
if
(
defaults
[
key
]
!=
value
)
options
[
key
]
=
value
if
(
defaults
[
key
]
!=
value
)
options
[
key
]
=
value
})
})
return
options
}
Tooltip
.
prototype
.
enter
=
function
(
obj
)
{
var
self
=
obj
instanceof
this
.
constructor
?
var
self
=
obj
instanceof
this
.
constructor
?
obj
:
$
(
obj
.
currentTarget
)[
this
.
type
](
options
).
data
(
'
bs.
'
+
this
.
type
)
obj
:
$
(
obj
.
currentTarget
)[
this
.
type
](
this
.
getDelegateOptions
()
).
data
(
'
bs.
'
+
this
.
type
)
clearTimeout
(
self
.
timeout
)
clearTimeout
(
self
.
timeout
)
...
@@ -114,7 +118,7 @@
...
@@ -114,7 +118,7 @@
Tooltip
.
prototype
.
leave
=
function
(
obj
)
{
Tooltip
.
prototype
.
leave
=
function
(
obj
)
{
var
self
=
obj
instanceof
this
.
constructor
?
var
self
=
obj
instanceof
this
.
constructor
?
obj
:
$
(
obj
.
currentTarget
)[
this
.
type
](
this
.
_options
).
data
(
'
bs.
'
+
this
.
type
)
obj
:
$
(
obj
.
currentTarget
)[
this
.
type
](
this
.
getDelegateOptions
()
).
data
(
'
bs.
'
+
this
.
type
)
clearTimeout
(
self
.
timeout
)
clearTimeout
(
self
.
timeout
)
...
@@ -339,7 +343,7 @@
...
@@ -339,7 +343,7 @@
}
}
Tooltip
.
prototype
.
toggle
=
function
(
e
)
{
Tooltip
.
prototype
.
toggle
=
function
(
e
)
{
var
self
=
e
?
$
(
e
.
currentTarget
)[
this
.
type
](
this
.
_options
).
data
(
'
bs.
'
+
this
.
type
)
:
this
var
self
=
e
?
$
(
e
.
currentTarget
)[
this
.
type
](
this
.
getDelegateOptions
()
).
data
(
'
bs.
'
+
this
.
type
)
:
this
self
.
tip
().
hasClass
(
'
in
'
)
?
self
.
leave
(
self
)
:
self
.
enter
(
self
)
self
.
tip
().
hasClass
(
'
in
'
)
?
self
.
leave
(
self
)
:
self
.
enter
(
self
)
}
}
...
...
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