Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
366e1e0a
Commit
366e1e0a
authored
12 years ago
by
fat
Browse files
Options
Download
Email Patches
Plain Diff
only fire hidden once backdrop has been removed
parent
1bf070b4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docs/assets/js/bootstrap-modal.js
+9
-8
docs/assets/js/bootstrap-modal.js
docs/assets/js/bootstrap.js
+9
-8
docs/assets/js/bootstrap.js
docs/assets/js/bootstrap.min.js
+1
-1
docs/assets/js/bootstrap.min.js
js/bootstrap-modal.js
+9
-8
js/bootstrap-modal.js
with
28 additions
and
25 deletions
+28
-25
docs/assets/js/bootstrap-modal.js
+
9
-
8
View file @
366e1e0a
...
@@ -138,12 +138,13 @@
...
@@ -138,12 +138,13 @@
})
})
}
}
,
hideModal
:
function
(
that
)
{
,
hideModal
:
function
()
{
this
.
$element
var
that
=
this
.
hide
()
this
.
$element
.
hide
()
.
trigger
(
'
hidden
'
)
this
.
backdrop
(
function
()
{
that
.
removeBackdrop
()
this
.
backdrop
()
that
.
$element
.
trigger
(
'
hidden
'
)
})
}
}
,
removeBackdrop
:
function
()
{
,
removeBackdrop
:
function
()
{
...
@@ -181,8 +182,8 @@
...
@@ -181,8 +182,8 @@
this
.
$backdrop
.
removeClass
(
'
in
'
)
this
.
$backdrop
.
removeClass
(
'
in
'
)
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)?
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)?
this
.
$backdrop
.
one
(
$
.
support
.
transition
.
end
,
$
.
proxy
(
this
.
removeBackdrop
,
this
)
)
:
this
.
$backdrop
.
one
(
$
.
support
.
transition
.
end
,
callback
)
:
this
.
removeBackdrop
()
callback
()
}
else
if
(
callback
)
{
}
else
if
(
callback
)
{
callback
()
callback
()
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/bootstrap.js
+
9
-
8
View file @
366e1e0a
...
@@ -936,12 +936,13 @@
...
@@ -936,12 +936,13 @@
})
})
}
}
,
hideModal
:
function
(
that
)
{
,
hideModal
:
function
()
{
this
.
$element
var
that
=
this
.
hide
()
this
.
$element
.
hide
()
.
trigger
(
'
hidden
'
)
this
.
backdrop
(
function
()
{
that
.
removeBackdrop
()
this
.
backdrop
()
that
.
$element
.
trigger
(
'
hidden
'
)
})
}
}
,
removeBackdrop
:
function
()
{
,
removeBackdrop
:
function
()
{
...
@@ -979,8 +980,8 @@
...
@@ -979,8 +980,8 @@
this
.
$backdrop
.
removeClass
(
'
in
'
)
this
.
$backdrop
.
removeClass
(
'
in
'
)
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)?
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)?
this
.
$backdrop
.
one
(
$
.
support
.
transition
.
end
,
$
.
proxy
(
this
.
removeBackdrop
,
this
)
)
:
this
.
$backdrop
.
one
(
$
.
support
.
transition
.
end
,
callback
)
:
this
.
removeBackdrop
()
callback
()
}
else
if
(
callback
)
{
}
else
if
(
callback
)
{
callback
()
callback
()
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/bootstrap.min.js
+
1
-
1
View file @
366e1e0a
This diff is collapsed.
Click to expand it.
js/bootstrap-modal.js
+
9
-
8
View file @
366e1e0a
...
@@ -138,12 +138,13 @@
...
@@ -138,12 +138,13 @@
})
})
}
}
,
hideModal
:
function
(
that
)
{
,
hideModal
:
function
()
{
this
.
$element
var
that
=
this
.
hide
()
this
.
$element
.
hide
()
.
trigger
(
'
hidden
'
)
this
.
backdrop
(
function
()
{
that
.
removeBackdrop
()
this
.
backdrop
()
that
.
$element
.
trigger
(
'
hidden
'
)
})
}
}
,
removeBackdrop
:
function
()
{
,
removeBackdrop
:
function
()
{
...
@@ -181,8 +182,8 @@
...
@@ -181,8 +182,8 @@
this
.
$backdrop
.
removeClass
(
'
in
'
)
this
.
$backdrop
.
removeClass
(
'
in
'
)
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)?
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)?
this
.
$backdrop
.
one
(
$
.
support
.
transition
.
end
,
$
.
proxy
(
this
.
removeBackdrop
,
this
)
)
:
this
.
$backdrop
.
one
(
$
.
support
.
transition
.
end
,
callback
)
:
this
.
removeBackdrop
()
callback
()
}
else
if
(
callback
)
{
}
else
if
(
callback
)
{
callback
()
callback
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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