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
839b0c89
Commit
839b0c89
authored
Feb 28, 2013
by
fat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shiiiit
parent
0992a859
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
4 deletions
+21
-4
docs/assets/js/bootstrap-modal.js
docs/assets/js/bootstrap-modal.js
+1
-1
docs/assets/js/bootstrap.js
docs/assets/js/bootstrap.js
+1
-1
docs/assets/js/bootstrap.min.js
docs/assets/js/bootstrap.min.js
+1
-1
js/bootstrap-modal.js
js/bootstrap-modal.js
+1
-1
js/tests/unit/bootstrap-modal.js
js/tests/unit/bootstrap-modal.js
+17
-0
No files found.
docs/assets/js/bootstrap-modal.js
View file @
839b0c89
...
...
@@ -148,7 +148,7 @@
}
,
removeBackdrop
:
function
()
{
this
.
$backdrop
.
remove
()
this
.
$backdrop
&&
this
.
$backdrop
.
remove
()
this
.
$backdrop
=
null
}
...
...
docs/assets/js/bootstrap.js
View file @
839b0c89
...
...
@@ -946,7 +946,7 @@
}
,
removeBackdrop
:
function
()
{
this
.
$backdrop
.
remove
()
this
.
$backdrop
&&
this
.
$backdrop
.
remove
()
this
.
$backdrop
=
null
}
...
...
docs/assets/js/bootstrap.min.js
View file @
839b0c89
This diff is collapsed.
Click to expand it.
js/bootstrap-modal.js
View file @
839b0c89
...
...
@@ -148,7 +148,7 @@
}
,
removeBackdrop
:
function
()
{
this
.
$backdrop
.
remove
()
this
.
$backdrop
&&
this
.
$backdrop
.
remove
()
this
.
$backdrop
=
null
}
...
...
js/tests/unit/bootstrap-modal.js
View file @
839b0c89
...
...
@@ -117,4 +117,21 @@ $(function () {
})
.
modal
(
"
toggle
"
)
})
test
(
"
should allow modal close with 'backdrop:false'
"
,
function
()
{
stop
()
$
.
support
.
transition
=
false
var
div
=
$
(
"
<div>
"
,
{
id
:
'
modal-test
'
,
"
data-backdrop
"
:
false
})
div
.
bind
(
"
shown
"
,
function
()
{
ok
(
$
(
'
#modal-test
'
).
is
(
"
:visible
"
),
'
modal visible
'
)
div
.
modal
(
"
hide
"
)
})
.
bind
(
"
hidden
"
,
function
()
{
ok
(
!
$
(
'
#modal-test
'
).
is
(
"
:visible
"
),
'
modal hidden
'
)
div
.
remove
()
start
()
})
.
modal
(
"
show
"
)
})
})
\ No newline at end of file
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