1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-16 18:44:01 +02:00
This commit is contained in:
XhmikosR
2019-03-11 17:13:30 +02:00
parent c2b05dd7b5
commit ac67e04ce0
42 changed files with 5134 additions and 179 deletions

12
js/dist/modal.js vendored
View File

@@ -72,7 +72,8 @@
*/
var MILLISECONDS_MULTIPLIER = 1000;
var TRANSITION_END = 'transitionend';
var jQuery = window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
var _window = window,
jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
var toType = function toType(obj) {
return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
@@ -88,7 +89,7 @@
try {
return document.querySelector(selector) ? selector : null;
} catch (err) {
} catch (error) {
return null;
}
};
@@ -586,7 +587,6 @@
}
} // ----------------------------------------------------------------------
// the following methods are used to handle overflowing modals
// todo (fat): these should probably be refactored out of modal.js
// ----------------------------------------------------------------------
;
@@ -665,11 +665,11 @@
var padding = Manipulator.getDataAttribute(document.body, 'padding-right');
if (typeof padding !== 'undefined') {
if (typeof padding === 'undefined') {
document.body.style.paddingRight = '';
} else {
Manipulator.removeDataAttribute(document.body, 'padding-right');
document.body.style.paddingRight = padding;
} else {
document.body.style.paddingRight = '';
}
};