2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00
This commit is contained in:
Mark Otto
2018-02-24 12:44:44 -08:00
parent b8bfd26358
commit f3cec5e7f9
23 changed files with 61 additions and 41 deletions
+2 -2
View File
@@ -172,7 +172,7 @@ var Dropdown = function ($) {
if ('ontouchstart' in document.documentElement && $(parent).closest(Selector.NAVBAR_NAV).length === 0) {
$('body').children().on('mouseover', null, $.noop);
$(document.body).children().on('mouseover', null, $.noop);
}
this._element.focus();
@@ -355,7 +355,7 @@ var Dropdown = function ($) {
if ('ontouchstart' in document.documentElement) {
$('body').children().off('mouseover', null, $.noop);
$(document.body).children().off('mouseover', null, $.noop);
}
toggles[i].setAttribute('aria-expanded', 'false');
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -447,8 +447,8 @@ var Modal = function ($) {
}); // Adjust body padding
var actualPadding = document.body.style.paddingRight;
var calculatedPadding = $('body').css('padding-right');
$('body').data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
var calculatedPadding = $(document.body).css('padding-right');
$(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
}
};
@@ -470,10 +470,10 @@ var Modal = function ($) {
}
}); // Restore body padding
var padding = $('body').data('padding-right');
var padding = $(document.body).data('padding-right');
if (typeof padding !== 'undefined') {
$('body').css('padding-right', padding).removeData('padding-right');
$(document.body).css('padding-right', padding).removeData('padding-right');
}
};
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -267,7 +267,7 @@ var Tooltip = function ($) {
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if ('ontouchstart' in document.documentElement) {
$('body').children().on('mouseover', null, $.noop);
$(document.body).children().on('mouseover', null, $.noop);
}
var complete = function complete() {
@@ -328,7 +328,7 @@ var Tooltip = function ($) {
// empty mouseover listeners we added for iOS support
if ('ontouchstart' in document.documentElement) {
$('body').children().off('mouseover', null, $.noop);
$(document.body).children().off('mouseover', null, $.noop);
}
this._activeTrigger[Trigger.CLICK] = false;
+1 -1
View File
File diff suppressed because one or more lines are too long