Commit 4a01acaf authored by Mark Otto's avatar Mark Otto

Merge pull request #11941 from ZDroid/left-plus

No leading pluses
parents caadd720 1bf5abab
...@@ -1456,6 +1456,7 @@ table col[class*="col-"] { ...@@ -1456,6 +1456,7 @@ table col[class*="col-"] {
} }
table td[class*="col-"], table td[class*="col-"],
table th[class*="col-"] { table th[class*="col-"] {
position: static;
display: table-cell; display: table-cell;
float: none; float: none;
} }
......
This diff was suppressed by a .gitattributes entry.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -88,15 +88,15 @@ ...@@ -88,15 +88,15 @@
.parents('.active') .parents('.active')
.removeClass('active') .removeClass('active')
var selector = this.selector var selector = this.selector +
+ '[data-target="' + target + '"],' '[data-target="' + target + '"],' +
+ this.selector + '[href="' + target + '"]' this.selector + '[href="' + target + '"]'
var active = $(selector) var active = $(selector)
.parents('li') .parents('li')
.addClass('active') .addClass('active')
if (active.parent('.dropdown-menu').length) { if (active.parent('.dropdown-menu').length) {
active = active active = active
.closest('li.dropdown') .closest('li.dropdown')
.addClass('active') .addClass('active')
......
...@@ -17,10 +17,10 @@ $(function () { ...@@ -17,10 +17,10 @@ $(function () {
}) })
test('should fade element out on clicking .close', function () { test('should fade element out on clicking .close', function () {
var alertHTML = '<div class="alert-message warning fade in">' var alertHTML = '<div class="alert-message warning fade in">' +
+ '<a class="close" href="#" data-dismiss="alert">×</a>' '<a class="close" href="#" data-dismiss="alert">×</a>' +
+ '<p><strong>Holy guacamole!</strong> Best check yo self, you\'re not looking too good.</p>' '<p><strong>Holy guacamole!</strong> Best check yo self, you\'re not looking too good.</p>' +
+ '</div>', '</div>',
alert = $(alertHTML).alert() alert = $(alertHTML).alert()
alert.find('.close').click() alert.find('.close').click()
...@@ -31,10 +31,10 @@ $(function () { ...@@ -31,10 +31,10 @@ $(function () {
test('should remove element when clicking .close', function () { test('should remove element when clicking .close', function () {
$.support.transition = false $.support.transition = false
var alertHTML = '<div class="alert-message warning fade in">' var alertHTML = '<div class="alert-message warning fade in">' +
+ '<a class="close" href="#" data-dismiss="alert">×</a>' '<a class="close" href="#" data-dismiss="alert">×</a>' +
+ '<p><strong>Holy guacamole!</strong> Best check yo self, you\'re not looking too good.</p>' '<p><strong>Holy guacamole!</strong> Best check yo self, you\'re not looking too good.</p>' +
+ '</div>', '</div>',
alert = $(alertHTML).appendTo('#qunit-fixture').alert() alert = $(alertHTML).appendTo('#qunit-fixture').alert()
ok($('#qunit-fixture').find('.alert-message').length, 'element added to dom') ok($('#qunit-fixture').find('.alert-message').length, 'element added to dom')
......
This diff is collapsed.
...@@ -19,16 +19,15 @@ $(function () { ...@@ -19,16 +19,15 @@ $(function () {
test('should switch active class on scroll', function () { test('should switch active class on scroll', function () {
var sectionHTML = '<div id="masthead"></div>' var sectionHTML = '<div id="masthead"></div>'
$section = $(sectionHTML).append('#qunit-fixture'), $section = $(sectionHTML).append('#qunit-fixture'),
topbarHTML = '<div class="topbar">' topbarHTML = '<div class="topbar">' +
+ '<div class="topbar-inner">' '<div class="topbar-inner">' +
+ '<div class="container">' '<div class="container">' +
+ '<h3><a href="#">Bootstrap</a></h3>' '<h3><a href="#">Bootstrap</a></h3>' +
+ '<ul class="nav">' '<li><a href="#masthead">Overview</a></li>' +
+ '<li><a href="#masthead">Overview</a></li>' '</ul>' +
+ '</ul>' '</div>' +
+ '</div>' '</div>' +
+ '</div>' '</div>',
+ '</div>',
$topbar = $(topbarHTML).scrollspy() $topbar = $(topbarHTML).scrollspy()
ok($topbar.find('.active', true)) ok($topbar.find('.active', true))
......
...@@ -17,11 +17,10 @@ $(function () { ...@@ -17,11 +17,10 @@ $(function () {
}) })
test('should activate element by tab id', function () { test('should activate element by tab id', function () {
var tabsHTML = var tabsHTML = '<ul class="tabs">' +
'<ul class="tabs">' '<li><a href="#home">Home</a></li>' +
+ '<li><a href="#home">Home</a></li>' '<li><a href="#profile">Profile</a></li>' +
+ '<li><a href="#profile">Profile</a></li>' '</ul>'
+ '</ul>'
$('<ul><li id="home"></li><li id="profile"></li></ul>').appendTo('#qunit-fixture') $('<ul><li id="home"></li><li id="profile"></li></ul>').appendTo('#qunit-fixture')
...@@ -33,11 +32,10 @@ $(function () { ...@@ -33,11 +32,10 @@ $(function () {
}) })
test('should activate element by tab id', function () { test('should activate element by tab id', function () {
var pillsHTML = var pillsHTML = '<ul class="pills">' +
'<ul class="pills">' '<li><a href="#home">Home</a></li>' +
+ '<li><a href="#home">Home</a></li>' '<li><a href="#profile">Profile</a></li>' +
+ '<li><a href="#profile">Profile</a></li>' '</ul>'
+ '</ul>'
$('<ul><li id="home"></li><li id="profile"></li></ul>').appendTo('#qunit-fixture') $('<ul><li id="home"></li><li id="profile"></li></ul>').appendTo('#qunit-fixture')
...@@ -65,15 +63,14 @@ $(function () { ...@@ -65,15 +63,14 @@ $(function () {
}) })
test('show and shown events should reference correct relatedTarget', function () { test('show and shown events should reference correct relatedTarget', function () {
var dropHTML = var dropHTML = '<ul class="drop">' +
'<ul class="drop">' '<li class="dropdown"><a data-toggle="dropdown" href="#">1</a>' +
+ '<li class="dropdown"><a data-toggle="dropdown" href="#">1</a>' '<ul class="dropdown-menu">' +
+ '<ul class="dropdown-menu">' '<li><a href="#1-1" data-toggle="tab">1-1</a></li>' +
+ '<li><a href="#1-1" data-toggle="tab">1-1</a></li>' '<li><a href="#1-2" data-toggle="tab">1-2</a></li>' +
+ '<li><a href="#1-2" data-toggle="tab">1-2</a></li>' '</ul>' +
+ '</ul>' '</li>' +
+ '</li>' '</ul>'
+ '</ul>'
$(dropHTML).find('ul>li:first a').tab('show').end() $(dropHTML).find('ul>li:first a').tab('show').end()
.find('ul>li:last a').on('show', function (event) { .find('ul>li:last a').on('show', function (event) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment