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
4cb39987
Commit
4cb39987
authored
10 years ago
by
Bootstrap's Grunt bot
Browse files
Options
Download
Email Patches
Plain Diff
automatic grunt dist
parent
442d2dd4
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/js/bootstrap.js
+9
-7
dist/js/bootstrap.js
dist/js/bootstrap.min.js
+2
-2
dist/js/bootstrap.min.js
with
11 additions
and
9 deletions
+11
-9
dist/js/bootstrap.js
+
9
-
7
View file @
4cb39987
...
@@ -916,12 +916,13 @@ if (typeof jQuery === 'undefined') {
...
@@ -916,12 +916,13 @@ if (typeof jQuery === 'undefined') {
// ======================
// ======================
var
Modal
=
function
(
element
,
options
)
{
var
Modal
=
function
(
element
,
options
)
{
this
.
options
=
options
this
.
options
=
options
this
.
$body
=
$
(
document
.
body
)
this
.
$body
=
$
(
document
.
body
)
this
.
$element
=
$
(
element
)
this
.
$element
=
$
(
element
)
this
.
$backdrop
=
null
this
.
$backdrop
=
null
this
.
isShown
=
null
this
.
isShown
=
null
this
.
scrollbarWidth
=
0
this
.
originalBodyPad
=
null
this
.
scrollbarWidth
=
0
if
(
this
.
options
.
remote
)
{
if
(
this
.
options
.
remote
)
{
this
.
$element
this
.
$element
...
@@ -1161,11 +1162,12 @@ if (typeof jQuery === 'undefined') {
...
@@ -1161,11 +1162,12 @@ if (typeof jQuery === 'undefined') {
Modal
.
prototype
.
setScrollbar
=
function
()
{
Modal
.
prototype
.
setScrollbar
=
function
()
{
var
bodyPad
=
parseInt
((
this
.
$body
.
css
(
'
padding-right
'
)
||
0
),
10
)
var
bodyPad
=
parseInt
((
this
.
$body
.
css
(
'
padding-right
'
)
||
0
),
10
)
this
.
originalBodyPad
=
document
.
body
.
style
.
paddingRight
||
''
if
(
this
.
bodyIsOverflowing
)
this
.
$body
.
css
(
'
padding-right
'
,
bodyPad
+
this
.
scrollbarWidth
)
if
(
this
.
bodyIsOverflowing
)
this
.
$body
.
css
(
'
padding-right
'
,
bodyPad
+
this
.
scrollbarWidth
)
}
}
Modal
.
prototype
.
resetScrollbar
=
function
()
{
Modal
.
prototype
.
resetScrollbar
=
function
()
{
this
.
$body
.
css
(
'
padding-right
'
,
''
)
this
.
$body
.
css
(
'
padding-right
'
,
this
.
originalBodyPad
)
}
}
Modal
.
prototype
.
measureScrollbar
=
function
()
{
// thx walsh
Modal
.
prototype
.
measureScrollbar
=
function
()
{
// thx walsh
...
...
This diff is collapsed.
Click to expand it.
dist/js/bootstrap.min.js
+
2
-
2
View file @
4cb39987
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