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
10c6db4b
Commit
10c6db4b
authored
May 16, 2012
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add proper role to dialog markup and cleanup modal logging
parent
4b537781
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
33 deletions
+15
-33
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+4
-4
docs/assets/js/bootstrap-modal.js
docs/assets/js/bootstrap-modal.js
+2
-8
docs/assets/js/bootstrap.js
docs/assets/js/bootstrap.js
+2
-8
docs/assets/js/bootstrap.min.js
docs/assets/js/bootstrap.min.js
+1
-1
docs/javascript.html
docs/javascript.html
+2
-2
docs/templates/pages/javascript.mustache
docs/templates/pages/javascript.mustache
+2
-2
js/bootstrap-modal.js
js/bootstrap-modal.js
+2
-8
No files found.
docs/assets/css/bootstrap.css
View file @
10c6db4b
...
@@ -4643,15 +4643,15 @@ a.badge:hover {
...
@@ -4643,15 +4643,15 @@ a.badge:hover {
-webkit-box-shadow
:
inset
0
-1px
0
rgba
(
0
,
0
,
0
,
0.15
);
-webkit-box-shadow
:
inset
0
-1px
0
rgba
(
0
,
0
,
0
,
0.15
);
-moz-box-shadow
:
inset
0
-1px
0
rgba
(
0
,
0
,
0
,
0.15
);
-moz-box-shadow
:
inset
0
-1px
0
rgba
(
0
,
0
,
0
,
0.15
);
box-shadow
:
inset
0
-1px
0
rgba
(
0
,
0
,
0
,
0.15
);
box-shadow
:
inset
0
-1px
0
rgba
(
0
,
0
,
0
,
0.15
);
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
-ms-box-sizing
:
border-box
;
box-sizing
:
border-box
;
-webkit-transition
:
width
0.6s
ease
;
-webkit-transition
:
width
0.6s
ease
;
-moz-transition
:
width
0.6s
ease
;
-moz-transition
:
width
0.6s
ease
;
-ms-transition
:
width
0.6s
ease
;
-ms-transition
:
width
0.6s
ease
;
-o-transition
:
width
0.6s
ease
;
-o-transition
:
width
0.6s
ease
;
transition
:
width
0.6s
ease
;
transition
:
width
0.6s
ease
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
-ms-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.progress-striped
.bar
{
.progress-striped
.bar
{
...
...
docs/assets/js/bootstrap-modal.js
View file @
10c6db4b
...
@@ -95,7 +95,8 @@
...
@@ -95,7 +95,8 @@
$
(
'
body
'
).
removeClass
(
'
modal-open
'
)
$
(
'
body
'
).
removeClass
(
'
modal-open
'
)
this
.
escape
()
this
.
escape
()
this
.
relaxFocus
()
$
(
document
).
off
(
'
focusin.modal
'
)
this
.
$element
.
removeClass
(
'
in
'
)
this
.
$element
.
removeClass
(
'
in
'
)
...
@@ -106,20 +107,13 @@
...
@@ -106,20 +107,13 @@
,
enforceFocus
:
function
()
{
,
enforceFocus
:
function
()
{
var
that
=
this
var
that
=
this
var
console
=
window
.
console
console
.
log
(
'
attach
'
);
$
(
document
).
on
(
'
focusin.modal
'
,
function
(
e
)
{
$
(
document
).
on
(
'
focusin.modal
'
,
function
(
e
)
{
console
.
log
(
'
triggered
'
);
if
(
that
.
$element
[
0
]
!==
e
.
target
&&
!
that
.
$element
.
has
(
e
.
target
).
length
)
{
if
(
that
.
$element
[
0
]
!==
e
.
target
&&
!
that
.
$element
.
has
(
e
.
target
).
length
)
{
that
.
$element
.
focus
()
that
.
$element
.
focus
()
}
}
})
})
}
}
,
relaxFocus
:
function
()
{
$
(
document
).
off
(
'
focus.modal
'
)
}
,
escape
:
function
()
{
,
escape
:
function
()
{
var
that
=
this
var
that
=
this
if
(
this
.
isShown
&&
this
.
options
.
keyboard
)
{
if
(
this
.
isShown
&&
this
.
options
.
keyboard
)
{
...
...
docs/assets/js/bootstrap.js
View file @
10c6db4b
...
@@ -762,7 +762,8 @@
...
@@ -762,7 +762,8 @@
$
(
'
body
'
).
removeClass
(
'
modal-open
'
)
$
(
'
body
'
).
removeClass
(
'
modal-open
'
)
this
.
escape
()
this
.
escape
()
this
.
relaxFocus
()
$
(
document
).
off
(
'
focusin.modal
'
)
this
.
$element
.
removeClass
(
'
in
'
)
this
.
$element
.
removeClass
(
'
in
'
)
...
@@ -773,20 +774,13 @@
...
@@ -773,20 +774,13 @@
,
enforceFocus
:
function
()
{
,
enforceFocus
:
function
()
{
var
that
=
this
var
that
=
this
var
console
=
window
.
console
console
.
log
(
'
attach
'
);
$
(
document
).
on
(
'
focusin.modal
'
,
function
(
e
)
{
$
(
document
).
on
(
'
focusin.modal
'
,
function
(
e
)
{
console
.
log
(
'
triggered
'
);
if
(
that
.
$element
[
0
]
!==
e
.
target
&&
!
that
.
$element
.
has
(
e
.
target
).
length
)
{
if
(
that
.
$element
[
0
]
!==
e
.
target
&&
!
that
.
$element
.
has
(
e
.
target
).
length
)
{
that
.
$element
.
focus
()
that
.
$element
.
focus
()
}
}
})
})
}
}
,
relaxFocus
:
function
()
{
$
(
document
).
off
(
'
focus.modal
'
)
}
,
escape
:
function
()
{
,
escape
:
function
()
{
var
that
=
this
var
that
=
this
if
(
this
.
isShown
&&
this
.
options
.
keyboard
)
{
if
(
this
.
isShown
&&
this
.
options
.
keyboard
)
{
...
...
docs/assets/js/bootstrap.min.js
View file @
10c6db4b
This diff is collapsed.
Click to expand it.
docs/javascript.html
View file @
10c6db4b
...
@@ -201,10 +201,10 @@
...
@@ -201,10 +201,10 @@
<p>
Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.
</p>
<p>
Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.
</p>
<!-- sample modal content -->
<!-- sample modal content -->
<div
id=
"myModal"
class=
"modal hide fade"
tabindex=
0
>
<div
id=
"myModal"
class=
"modal hide fade"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModal-label"
>
<div
class=
"modal-header"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h3>
Modal Heading
</h3>
<h3
id=
"myModal-label"
>
Modal Heading
</h3>
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<h4>
Text in a modal
</h4>
<h4>
Text in a modal
</h4>
...
...
docs/templates/pages/javascript.mustache
View file @
10c6db4b
...
@@ -124,10 +124,10 @@
...
@@ -124,10 +124,10 @@
<p>
{{
_i
}}
Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.
{{/
i
}}
</p>
<p>
{{
_i
}}
Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.
{{/
i
}}
</p>
<!-- sample modal content -->
<!-- sample modal content -->
<div
id=
"myModal"
class=
"modal hide fade"
tabindex=
"
0
"
>
<div
id=
"myModal"
class=
"modal hide fade"
tabindex=
"
-1"
role=
"dialog"
aria-labelledby=
"myModal-label
"
>
<div
class=
"modal-header"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h3>
{{
_i
}}
Modal Heading
{{/
i
}}
</h3>
<h3
id=
"myModal-label"
>
{{
_i
}}
Modal Heading
{{/
i
}}
</h3>
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<h4>
{{
_i
}}
Text in a modal
{{/
i
}}
</h4>
<h4>
{{
_i
}}
Text in a modal
{{/
i
}}
</h4>
...
...
js/bootstrap-modal.js
View file @
10c6db4b
...
@@ -95,7 +95,8 @@
...
@@ -95,7 +95,8 @@
$
(
'
body
'
).
removeClass
(
'
modal-open
'
)
$
(
'
body
'
).
removeClass
(
'
modal-open
'
)
this
.
escape
()
this
.
escape
()
this
.
relaxFocus
()
$
(
document
).
off
(
'
focusin.modal
'
)
this
.
$element
.
removeClass
(
'
in
'
)
this
.
$element
.
removeClass
(
'
in
'
)
...
@@ -106,20 +107,13 @@
...
@@ -106,20 +107,13 @@
,
enforceFocus
:
function
()
{
,
enforceFocus
:
function
()
{
var
that
=
this
var
that
=
this
var
console
=
window
.
console
console
.
log
(
'
attach
'
);
$
(
document
).
on
(
'
focusin.modal
'
,
function
(
e
)
{
$
(
document
).
on
(
'
focusin.modal
'
,
function
(
e
)
{
console
.
log
(
'
triggered
'
);
if
(
that
.
$element
[
0
]
!==
e
.
target
&&
!
that
.
$element
.
has
(
e
.
target
).
length
)
{
if
(
that
.
$element
[
0
]
!==
e
.
target
&&
!
that
.
$element
.
has
(
e
.
target
).
length
)
{
that
.
$element
.
focus
()
that
.
$element
.
focus
()
}
}
})
})
}
}
,
relaxFocus
:
function
()
{
$
(
document
).
off
(
'
focus.modal
'
)
}
,
escape
:
function
()
{
,
escape
:
function
()
{
var
that
=
this
var
that
=
this
if
(
this
.
isShown
&&
this
.
options
.
keyboard
)
{
if
(
this
.
isShown
&&
this
.
options
.
keyboard
)
{
...
...
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