Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
4e4e4563
Commit
4e4e4563
authored
11 years ago
by
Heinrich Fenkart
Committed by
Chris Rebert
11 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix
#12845
- Modal#hide should only be called with an event argument
Closes #12850
parent
ead17b7c
3 merge requests
!28721
Hot test
,
!22103
test
,
!25326
Adjust examples
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/js/bootstrap.js
+1
-1
dist/js/bootstrap.js
js/modal.js
+1
-1
js/modal.js
with
2 additions
and
2 deletions
+2
-2
dist/js/bootstrap.js
+
1
-
1
View file @
4e4e4563
...
...
@@ -817,7 +817,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
}
Modal
.
prototype
.
toggle
=
function
(
_relatedTarget
)
{
return
this
[
!
this
.
isShown
?
'
show
'
:
'
hi
de
'
]
(
_relatedTarget
)
return
this
.
isShown
?
this
.
hide
()
:
t
hi
s
.
show
(
_relatedTarget
)
}
Modal
.
prototype
.
show
=
function
(
_relatedTarget
)
{
...
...
This diff is collapsed.
Click to expand it.
js/modal.js
+
1
-
1
View file @
4e4e4563
...
...
@@ -36,7 +36,7 @@
}
Modal
.
prototype
.
toggle
=
function
(
_relatedTarget
)
{
return
this
[
!
this
.
isShown
?
'
show
'
:
'
hi
de
'
]
(
_relatedTarget
)
return
this
.
isShown
?
this
.
hide
()
:
t
hi
s
.
show
(
_relatedTarget
)
}
Modal
.
prototype
.
show
=
function
(
_relatedTarget
)
{
...
...
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
Menu
Explore
Projects
Groups
Snippets