From: Mark Otto Date: Mon, 2 Jan 2017 19:52:38 +0000 (-0800) Subject: update seletors in js X-Git-Tag: v4.0.0-alpha.6~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c61a0059add8ed03be55601f674bf831d92898b1;p=thirdparty%2Fbootstrap.git update seletors in js --- diff --git a/js/src/modal.js b/js/src/modal.js index 94abd19f49..484edcada8 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -67,7 +67,7 @@ const Modal = (($) => { DIALOG : '.modal-dialog', DATA_TOGGLE : '[data-toggle="modal"]', DATA_DISMISS : '[data-dismiss="modal"]', - FIXED_CONTENT : '.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed' + FIXED_CONTENT : '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top' } diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 7af5aeb272..84492cec2c 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -379,8 +379,8 @@ $(function () { QUnit.test('should have a paddingRight when the modal is taller than the viewport', function (assert) { assert.expect(2) var done = assert.async() - $('').appendTo('#qunit-fixture') - $('.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed').css('padding-right', '10px') + $('
@Johann-S
').appendTo('#qunit-fixture') + $('.fixed-top, .fixed-bottom, .is-fixed, .sticky-top').css('padding-right', '10px') $('