mirror of https://github.com/twbs/bootstrap.git
parent
fe0ad82159
commit
724bf86288
|
@ -442,6 +442,7 @@ select,
|
||||||
textarea {
|
textarea {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -650,6 +650,14 @@ var Carousel = (function ($) {
|
||||||
this._slide(Direction.NEXT);
|
this._slide(Direction.NEXT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: 'nextWhenVisible',
|
||||||
|
value: function nextWhenVisible() {
|
||||||
|
// Don't call next when the page isn't visible
|
||||||
|
if (!document.hidden) {
|
||||||
|
this.next();
|
||||||
|
}
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'prev',
|
key: 'prev',
|
||||||
value: function prev() {
|
value: function prev() {
|
||||||
|
@ -685,7 +693,7 @@ var Carousel = (function ($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._config.interval && !this._isPaused) {
|
if (this._config.interval && !this._isPaused) {
|
||||||
this._interval = setInterval($.proxy(this.next, this), this._config.interval);
|
this._interval = setInterval($.proxy(document.visibilityState ? this.nextWhenVisible : this.next, this), this._config.interval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -136,6 +136,14 @@
|
||||||
this._slide(Direction.NEXT);
|
this._slide(Direction.NEXT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: 'nextWhenVisible',
|
||||||
|
value: function nextWhenVisible() {
|
||||||
|
// Don't call next when the page isn't visible
|
||||||
|
if (!document.hidden) {
|
||||||
|
this.next();
|
||||||
|
}
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'prev',
|
key: 'prev',
|
||||||
value: function prev() {
|
value: function prev() {
|
||||||
|
@ -171,7 +179,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._config.interval && !this._isPaused) {
|
if (this._config.interval && !this._isPaused) {
|
||||||
this._interval = setInterval($.proxy(this.next, this), this._config.interval);
|
this._interval = setInterval($.proxy(document.visibilityState ? this.nextWhenVisible : this.next, this), this._config.interval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -442,6 +442,7 @@ select,
|
||||||
textarea {
|
textarea {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
|
@ -742,27 +743,27 @@ pre code {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.container {
|
.container {
|
||||||
max-width: 34rem;
|
max-width: 576px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 48em) {
|
@media (min-width: 768px) {
|
||||||
.container {
|
.container {
|
||||||
max-width: 45rem;
|
max-width: 720px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 62em) {
|
@media (min-width: 992px) {
|
||||||
.container {
|
.container {
|
||||||
max-width: 60rem;
|
max-width: 940px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 75em) {
|
@media (min-width: 1200px) {
|
||||||
.container {
|
.container {
|
||||||
max-width: 72.25rem;
|
max-width: 1140px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1005,7 +1006,7 @@ pre code {
|
||||||
margin-left: 100%;
|
margin-left: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
|
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
@ -1164,7 +1165,7 @@ pre code {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 48em) {
|
@media (min-width: 768px) {
|
||||||
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
|
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
@ -1323,7 +1324,7 @@ pre code {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 62em) {
|
@media (min-width: 992px) {
|
||||||
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
|
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
@ -1482,7 +1483,7 @@ pre code {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 75em) {
|
@media (min-width: 1200px) {
|
||||||
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
|
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
@ -2143,7 +2144,7 @@ input[type="checkbox"].disabled {
|
||||||
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNyb3NzIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDYxMiA3OTIiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYxMiA3OTIiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiNEOTUzNEYiIGQ9Ik00NDcsNTQ0LjRjLTE0LjQsMTQuNC0zNy42LDE0LjQtNTEuOSwwTDMwNiw0NTEuN2wtODkuMSw5Mi43Yy0xNC40LDE0LjQtMzcuNiwxNC40LTUxLjksMGMtMTQuNC0xNC40LTE0LjQtMzcuNiwwLTUxLjlsOTIuNC05Ni40TDE2NSwyOTkuNmMtMTQuNC0xNC40LTE0LjQtMzcuNiwwLTUxLjlzMzcuNi0xNC40LDUxLjksMGw4OS4yLDkyLjdsODkuMS05Mi43YzE0LjQtMTQuNCwzNy42LTE0LjQsNTEuOSwwYzE0LjQsMTQuNCwxNC40LDM3LjYsMCw1MS45TDM1NC43LDM5Nmw5Mi40LDk2LjRDNDYxLjQsNTA2LjgsNDYxLjQsNTMwLDQ0Nyw1NDQuNHoiLz48L3N2Zz4=");
|
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNyb3NzIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDYxMiA3OTIiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYxMiA3OTIiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiNEOTUzNEYiIGQ9Ik00NDcsNTQ0LjRjLTE0LjQsMTQuNC0zNy42LDE0LjQtNTEuOSwwTDMwNiw0NTEuN2wtODkuMSw5Mi43Yy0xNC40LDE0LjQtMzcuNiwxNC40LTUxLjksMGMtMTQuNC0xNC40LTE0LjQtMzcuNiwwLTUxLjlsOTIuNC05Ni40TDE2NSwyOTkuNmMtMTQuNC0xNC40LTE0LjQtMzcuNiwwLTUxLjlzMzcuNi0xNC40LDUxLjksMGw4OS4yLDkyLjdsODkuMS05Mi43YzE0LjQtMTQuNCwzNy42LTE0LjQsNTEuOSwwYzE0LjQsMTQuNCwxNC40LDM3LjYsMCw1MS45TDM1NC43LDM5Nmw5Mi40LDk2LjRDNDYxLjQsNTA2LjgsNDYxLjQsNTMwLDQ0Nyw1NDQuNHoiLz48L3N2Zz4=");
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.form-inline .form-group {
|
.form-inline .form-group {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
@ -3683,7 +3684,7 @@ input[type="button"].btn-block {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.navbar {
|
.navbar {
|
||||||
border-radius: .25rem;
|
border-radius: .25rem;
|
||||||
}
|
}
|
||||||
|
@ -3693,7 +3694,7 @@ input[type="button"].btn-block {
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.navbar-full {
|
.navbar-full {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
@ -3707,7 +3708,7 @@ input[type="button"].btn-block {
|
||||||
z-index: 1030;
|
z-index: 1030;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.navbar-fixed-top,
|
.navbar-fixed-top,
|
||||||
.navbar-fixed-bottom {
|
.navbar-fixed-bottom {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
@ -3730,7 +3731,7 @@ input[type="button"].btn-block {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.navbar-sticky-top {
|
.navbar-sticky-top {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
@ -3781,19 +3782,19 @@ input[type="button"].btn-block {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.navbar-toggleable-xs {
|
.navbar-toggleable-xs {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 48em) {
|
@media (min-width: 768px) {
|
||||||
.navbar-toggleable-sm {
|
.navbar-toggleable-sm {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 62em) {
|
@media (min-width: 992px) {
|
||||||
.navbar-toggleable-md {
|
.navbar-toggleable-md {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
@ -4027,7 +4028,7 @@ input[type="button"].btn-block {
|
||||||
border-radius: 0 0 .25rem .25rem;
|
border-radius: 0 0 .25rem .25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.card-deck {
|
.card-deck {
|
||||||
display: table;
|
display: table;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
|
@ -4044,7 +4045,7 @@ input[type="button"].btn-block {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.card-group {
|
.card-group {
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -4079,7 +4080,7 @@ input[type="button"].btn-block {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.card-columns {
|
.card-columns {
|
||||||
-webkit-column-count: 3;
|
-webkit-column-count: 3;
|
||||||
-moz-column-count: 3;
|
-moz-column-count: 3;
|
||||||
|
@ -4390,7 +4391,7 @@ a.label:hover {
|
||||||
border-top-color: #d0d5d8;
|
border-top-color: #d0d5d8;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.jumbotron {
|
.jumbotron {
|
||||||
padding: 4rem 2rem;
|
padding: 4rem 2rem;
|
||||||
}
|
}
|
||||||
|
@ -5170,7 +5171,7 @@ button.close {
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
width: 600px;
|
width: 600px;
|
||||||
margin: 30px auto;
|
margin: 30px auto;
|
||||||
|
@ -5180,7 +5181,7 @@ button.close {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 48em) {
|
@media (min-width: 768px) {
|
||||||
.modal-lg {
|
.modal-lg {
|
||||||
width: 900px;
|
width: 900px;
|
||||||
}
|
}
|
||||||
|
@ -5660,7 +5661,7 @@ button.close {
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.carousel-control .icon-prev,
|
.carousel-control .icon-prev,
|
||||||
.carousel-control .icon-next {
|
.carousel-control .icon-next {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
|
@ -5779,7 +5780,7 @@ button.close {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.text-sm-left {
|
.text-sm-left {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
@ -5791,7 +5792,7 @@ button.close {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 48em) {
|
@media (min-width: 768px) {
|
||||||
.text-md-left {
|
.text-md-left {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
@ -5803,7 +5804,7 @@ button.close {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 62em) {
|
@media (min-width: 992px) {
|
||||||
.text-lg-left {
|
.text-lg-left {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
@ -5815,7 +5816,7 @@ button.close {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 75em) {
|
@media (min-width: 1200px) {
|
||||||
.text-xl-left {
|
.text-xl-left {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
@ -6204,49 +6205,49 @@ a.bg-danger:hover {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 33.9em) {
|
@media (max-width: 543px) {
|
||||||
.hidden-xs-down {
|
.hidden-xs-down {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 34em) {
|
@media (min-width: 544px) {
|
||||||
.hidden-sm-up {
|
.hidden-sm-up {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 47.9em) {
|
@media (max-width: 767px) {
|
||||||
.hidden-sm-down {
|
.hidden-sm-down {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 48em) {
|
@media (min-width: 768px) {
|
||||||
.hidden-md-up {
|
.hidden-md-up {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 61.9em) {
|
@media (max-width: 991px) {
|
||||||
.hidden-md-down {
|
.hidden-md-down {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 62em) {
|
@media (min-width: 992px) {
|
||||||
.hidden-lg-up {
|
.hidden-lg-up {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 74.9em) {
|
@media (max-width: 1199px) {
|
||||||
.hidden-lg-down {
|
.hidden-lg-down {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 75em) {
|
@media (min-width: 1200px) {
|
||||||
.hidden-xl-up {
|
.hidden-xl-up {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -650,6 +650,14 @@ var Carousel = (function ($) {
|
||||||
this._slide(Direction.NEXT);
|
this._slide(Direction.NEXT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: 'nextWhenVisible',
|
||||||
|
value: function nextWhenVisible() {
|
||||||
|
// Don't call next when the page isn't visible
|
||||||
|
if (!document.hidden) {
|
||||||
|
this.next();
|
||||||
|
}
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'prev',
|
key: 'prev',
|
||||||
value: function prev() {
|
value: function prev() {
|
||||||
|
@ -685,7 +693,7 @@ var Carousel = (function ($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._config.interval && !this._isPaused) {
|
if (this._config.interval && !this._isPaused) {
|
||||||
this._interval = setInterval($.proxy(this.next, this), this._config.interval);
|
this._interval = setInterval($.proxy(document.visibilityState ? this.nextWhenVisible : this.next, this), this._config.interval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
@ -918,7 +926,10 @@ var Carousel = (function ($) {
|
||||||
|
|
||||||
if (typeof config === 'number') {
|
if (typeof config === 'number') {
|
||||||
data.to(config);
|
data.to(config);
|
||||||
} else if (action) {
|
} else if (typeof action === 'string') {
|
||||||
|
if (data[action] === undefined) {
|
||||||
|
throw new Error('No method named "' + action + '"');
|
||||||
|
}
|
||||||
data[action]();
|
data[action]();
|
||||||
} else if (_config.interval) {
|
} else if (_config.interval) {
|
||||||
data.pause();
|
data.pause();
|
||||||
|
@ -1306,6 +1317,9 @@ var Collapse = (function ($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config]();
|
data[config]();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1496,6 +1510,9 @@ var Dropdown = (function ($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config].call(this);
|
data[config].call(this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -2093,6 +2110,9 @@ var Modal = (function ($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config](relatedTarget);
|
data[config](relatedTarget);
|
||||||
} else if (_config.show) {
|
} else if (_config.show) {
|
||||||
data.show(relatedTarget);
|
data.show(relatedTarget);
|
||||||
|
@ -2429,6 +2449,9 @@ var ScrollSpy = (function ($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config]();
|
data[config]();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -2692,6 +2715,9 @@ var Tab = (function ($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config]();
|
data[config]();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -3283,6 +3309,9 @@ var Tooltip = (function ($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config]();
|
data[config]();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -3468,6 +3497,9 @@ var Popover = (function ($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config]();
|
data[config]();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -136,6 +136,14 @@
|
||||||
this._slide(Direction.NEXT);
|
this._slide(Direction.NEXT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: 'nextWhenVisible',
|
||||||
|
value: function nextWhenVisible() {
|
||||||
|
// Don't call next when the page isn't visible
|
||||||
|
if (!document.hidden) {
|
||||||
|
this.next();
|
||||||
|
}
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'prev',
|
key: 'prev',
|
||||||
value: function prev() {
|
value: function prev() {
|
||||||
|
@ -171,7 +179,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._config.interval && !this._isPaused) {
|
if (this._config.interval && !this._isPaused) {
|
||||||
this._interval = setInterval($.proxy(this.next, this), this._config.interval);
|
this._interval = setInterval($.proxy(document.visibilityState ? this.nextWhenVisible : this.next, this), this._config.interval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
@ -404,7 +412,10 @@
|
||||||
|
|
||||||
if (typeof config === 'number') {
|
if (typeof config === 'number') {
|
||||||
data.to(config);
|
data.to(config);
|
||||||
} else if (action) {
|
} else if (typeof action === 'string') {
|
||||||
|
if (data[action] === undefined) {
|
||||||
|
throw new Error('No method named "' + action + '"');
|
||||||
|
}
|
||||||
data[action]();
|
data[action]();
|
||||||
} else if (_config.interval) {
|
} else if (_config.interval) {
|
||||||
data.pause();
|
data.pause();
|
||||||
|
|
|
@ -331,6 +331,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config]();
|
data[config]();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -166,6 +166,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config].call(this);
|
data[config].call(this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -479,6 +479,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config](relatedTarget);
|
data[config](relatedTarget);
|
||||||
} else if (_config.show) {
|
} else if (_config.show) {
|
||||||
data.show(relatedTarget);
|
data.show(relatedTarget);
|
||||||
|
|
|
@ -156,6 +156,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config]();
|
data[config]();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -288,6 +288,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config]();
|
data[config]();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -240,6 +240,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config]();
|
data[config]();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -577,6 +577,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
if (data[config] === undefined) {
|
||||||
|
throw new Error('No method named "' + config + '"');
|
||||||
|
}
|
||||||
data[config]();
|
data[config]();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -119,6 +119,14 @@ var Carousel = (function ($) {
|
||||||
this._slide(Direction.NEXT);
|
this._slide(Direction.NEXT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: 'nextWhenVisible',
|
||||||
|
value: function nextWhenVisible() {
|
||||||
|
// Don't call next when the page isn't visible
|
||||||
|
if (!document.hidden) {
|
||||||
|
this.next();
|
||||||
|
}
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'prev',
|
key: 'prev',
|
||||||
value: function prev() {
|
value: function prev() {
|
||||||
|
@ -154,7 +162,7 @@ var Carousel = (function ($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._config.interval && !this._isPaused) {
|
if (this._config.interval && !this._isPaused) {
|
||||||
this._interval = setInterval($.proxy(this.next, this), this._config.interval);
|
this._interval = setInterval($.proxy(document.visibilityState ? this.nextWhenVisible : this.next, this), this._config.interval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue