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
084f0fb1
Commit
084f0fb1
authored
Jan 17, 2014
by
Tobias Lindig
Committed by
Chris Rebert
Jan 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add namespace `.bs` also to the event `dismiss.modal`
parent
d6e8006e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
dist/js/bootstrap.js
dist/js/bootstrap.js
+3
-3
dist/js/bootstrap.min.js
dist/js/bootstrap.min.js
+1
-1
js/modal.js
js/modal.js
+3
-3
No files found.
dist/js/bootstrap.js
View file @
084f0fb1
...
...
@@ -829,7 +829,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap requires jQuery'
this
.
escape
()
this
.
$element
.
on
(
'
click.dismiss.modal
'
,
'
[data-dismiss="modal"]
'
,
$
.
proxy
(
this
.
hide
,
this
))
this
.
$element
.
on
(
'
click.dismiss.
bs.
modal
'
,
'
[data-dismiss="modal"]
'
,
$
.
proxy
(
this
.
hide
,
this
))
this
.
backdrop
(
function
()
{
var
transition
=
$
.
support
.
transition
&&
that
.
$element
.
hasClass
(
'
fade
'
)
...
...
@@ -882,7 +882,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap requires jQuery'
this
.
$element
.
removeClass
(
'
in
'
)
.
attr
(
'
aria-hidden
'
,
true
)
.
off
(
'
click.dismiss.modal
'
)
.
off
(
'
click.dismiss.
bs.
modal
'
)
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)
?
this
.
$element
...
...
@@ -934,7 +934,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap requires jQuery'
this
.
$backdrop
=
$
(
'
<div class="modal-backdrop
'
+
animate
+
'
" />
'
)
.
appendTo
(
document
.
body
)
this
.
$element
.
on
(
'
click.dismiss.modal
'
,
$
.
proxy
(
function
(
e
)
{
this
.
$element
.
on
(
'
click.dismiss.
bs.
modal
'
,
$
.
proxy
(
function
(
e
)
{
if
(
e
.
target
!==
e
.
currentTarget
)
return
this
.
options
.
backdrop
==
'
static
'
?
this
.
$element
[
0
].
focus
.
call
(
this
.
$element
[
0
])
...
...
dist/js/bootstrap.min.js
View file @
084f0fb1
This diff is collapsed.
Click to expand it.
js/modal.js
View file @
084f0fb1
...
...
@@ -50,7 +50,7 @@
this
.
escape
()
this
.
$element
.
on
(
'
click.dismiss.modal
'
,
'
[data-dismiss="modal"]
'
,
$
.
proxy
(
this
.
hide
,
this
))
this
.
$element
.
on
(
'
click.dismiss.
bs.
modal
'
,
'
[data-dismiss="modal"]
'
,
$
.
proxy
(
this
.
hide
,
this
))
this
.
backdrop
(
function
()
{
var
transition
=
$
.
support
.
transition
&&
that
.
$element
.
hasClass
(
'
fade
'
)
...
...
@@ -103,7 +103,7 @@
this
.
$element
.
removeClass
(
'
in
'
)
.
attr
(
'
aria-hidden
'
,
true
)
.
off
(
'
click.dismiss.modal
'
)
.
off
(
'
click.dismiss.
bs.
modal
'
)
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)
?
this
.
$element
...
...
@@ -155,7 +155,7 @@
this
.
$backdrop
=
$
(
'
<div class="modal-backdrop
'
+
animate
+
'
" />
'
)
.
appendTo
(
document
.
body
)
this
.
$element
.
on
(
'
click.dismiss.modal
'
,
$
.
proxy
(
function
(
e
)
{
this
.
$element
.
on
(
'
click.dismiss.
bs.
modal
'
,
$
.
proxy
(
function
(
e
)
{
if
(
e
.
target
!==
e
.
currentTarget
)
return
this
.
options
.
backdrop
==
'
static
'
?
this
.
$element
[
0
].
focus
.
call
(
this
.
$element
[
0
])
...
...
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