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
8f726dc6
Commit
8f726dc6
authored
Oct 31, 2011
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue #240 - firefox drop css transition events :{o
parent
169b4b5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
js/bootstrap-modal.js
js/bootstrap-modal.js
+16
-3
No files found.
js/bootstrap-modal.js
View file @
8f726dc6
...
@@ -89,8 +89,7 @@
...
@@ -89,8 +89,7 @@
that
.
$element
[
0
].
offsetWidth
// force reflow
that
.
$element
[
0
].
offsetWidth
// force reflow
}
}
that
.
$element
that
.
$element
.
addClass
(
'
in
'
)
.
addClass
(
'
in
'
)
transition
?
transition
?
that
.
$element
.
one
(
transitionEnd
,
function
()
{
that
.
$element
.
trigger
(
'
shown
'
)
})
:
that
.
$element
.
one
(
transitionEnd
,
function
()
{
that
.
$element
.
trigger
(
'
shown
'
)
})
:
...
@@ -118,7 +117,7 @@
...
@@ -118,7 +117,7 @@
.
removeClass
(
'
in
'
)
.
removeClass
(
'
in
'
)
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)
?
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)
?
this
.
$element
.
one
(
transitionEnd
,
$
.
proxy
(
hideModal
,
this
)
)
:
hideWithTransition
.
call
(
this
)
:
hideModal
.
call
(
this
)
hideModal
.
call
(
this
)
return
this
return
this
...
@@ -130,6 +129,20 @@
...
@@ -130,6 +129,20 @@
/* MODAL PRIVATE METHODS
/* MODAL PRIVATE METHODS
* ===================== */
* ===================== */
function
hideWithTransition
()
{
// firefox drops transitionEnd events :{o
var
that
=
this
,
timeout
=
setTimeout
(
function
()
{
that
.
$element
.
unbind
(
transitionEnd
)
hideModal
.
call
(
that
)
},
500
)
this
.
$element
.
one
(
transitionEnd
,
function
()
{
clearTimeout
(
timeout
)
hideModal
.
call
(
that
)
})
}
function
hideModal
(
that
)
{
function
hideModal
(
that
)
{
this
.
$element
this
.
$element
.
hide
()
.
hide
()
...
...
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