]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
update seletors in js
authorMark Otto <markdotto@gmail.com>
Mon, 2 Jan 2017 19:52:38 +0000 (11:52 -0800)
committerMark Otto <markdotto@gmail.com>
Mon, 2 Jan 2017 19:52:38 +0000 (11:52 -0800)
js/src/modal.js
js/tests/unit/modal.js

index 94abd19f4990b08cf9705cb6f91aeec0fccbb52b..484edcada8f6a39c6fcaeff2a41c5b5606e04d71 100644 (file)
@@ -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'
   }
 
 
index 7af5aeb272267cc48af42dfd899f428a8830971d..84492cec2c67293eec9c85ebee43c8c9096a1e67 100644 (file)
@@ -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()
-    $('<div class="navbar-fixed-top navbar-fixed-bottom is-fixed">@Johann-S</div>').appendTo('#qunit-fixture')
-    $('.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed').css('padding-right', '10px')
+    $('<div class="fixed-top fixed-bottom sticky-top is-fixed">@Johann-S</div>').appendTo('#qunit-fixture')
+    $('.fixed-top, .fixed-bottom, .is-fixed, .sticky-top').css('padding-right', '10px')
 
     $('<div id="modal-test"/>')
       .on('shown.bs.modal', function () {
@@ -396,8 +396,8 @@ $(function () {
   QUnit.test('should remove padding-right on modal after closing', function (assert) {
     assert.expect(3)
     var done = assert.async()
-    $('<div class="navbar-fixed-top navbar-fixed-bottom is-fixed">@Johann-S</div>').appendTo('#qunit-fixture')
-    $('.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed').css('padding-right', '10px')
+    $('<div class="fixed-top fixed-bottom is-fixed sticky-top">@Johann-S</div>').appendTo('#qunit-fixture')
+    $('.fixed-top, .fixed-bottom, .is-fixed, .sticky-top').css('padding-right', '10px')
 
     $('<div id="modal-test"/>')
       .on('shown.bs.modal', function () {