mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 19:06:40 +02:00
grunt
This commit is contained in:
4
dist/js/bootstrap.js
vendored
4
dist/js/bootstrap.js
vendored
@@ -1050,8 +1050,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
}
|
}
|
||||||
|
|
||||||
Modal.prototype.checkScrollbar = function () {
|
Modal.prototype.checkScrollbar = function () {
|
||||||
if (document.body.clientWidth >= window.innerWidth) return
|
this.scrollbarWidth = this.measureScrollbar()
|
||||||
this.scrollbarWidth = this.scrollbarWidth || this.measureScrollbar()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Modal.prototype.setScrollbar = function () {
|
Modal.prototype.setScrollbar = function () {
|
||||||
@@ -1064,6 +1063,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
}
|
}
|
||||||
|
|
||||||
Modal.prototype.measureScrollbar = function () { // thx walsh
|
Modal.prototype.measureScrollbar = function () { // thx walsh
|
||||||
|
if (document.body.clientWidth >= window.innerWidth) return 0
|
||||||
var scrollDiv = document.createElement('div')
|
var scrollDiv = document.createElement('div')
|
||||||
scrollDiv.className = 'modal-scrollbar-measure'
|
scrollDiv.className = 'modal-scrollbar-measure'
|
||||||
this.$body.append(scrollDiv)
|
this.$body.append(scrollDiv)
|
||||||
|
4
dist/js/bootstrap.min.js
vendored
4
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2
docs/assets/js/raw-files.min.js
vendored
2
docs/assets/js/raw-files.min.js
vendored
File diff suppressed because one or more lines are too long
4
docs/dist/js/bootstrap.js
vendored
4
docs/dist/js/bootstrap.js
vendored
@@ -1050,8 +1050,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
}
|
}
|
||||||
|
|
||||||
Modal.prototype.checkScrollbar = function () {
|
Modal.prototype.checkScrollbar = function () {
|
||||||
if (document.body.clientWidth >= window.innerWidth) return
|
this.scrollbarWidth = this.measureScrollbar()
|
||||||
this.scrollbarWidth = this.scrollbarWidth || this.measureScrollbar()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Modal.prototype.setScrollbar = function () {
|
Modal.prototype.setScrollbar = function () {
|
||||||
@@ -1064,6 +1063,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
}
|
}
|
||||||
|
|
||||||
Modal.prototype.measureScrollbar = function () { // thx walsh
|
Modal.prototype.measureScrollbar = function () { // thx walsh
|
||||||
|
if (document.body.clientWidth >= window.innerWidth) return 0
|
||||||
var scrollDiv = document.createElement('div')
|
var scrollDiv = document.createElement('div')
|
||||||
scrollDiv.className = 'modal-scrollbar-measure'
|
scrollDiv.className = 'modal-scrollbar-measure'
|
||||||
this.$body.append(scrollDiv)
|
this.$body.append(scrollDiv)
|
||||||
|
4
docs/dist/js/bootstrap.min.js
vendored
4
docs/dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user