mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Merge branch 'master' into 3.0.0-wip
Conflicts: docs/assets/js/bootstrap.min.js
This commit is contained in:
commit
2aa1a4dc70
26
CHANGELOG.md
26
CHANGELOG.md
@ -1,3 +1,29 @@
|
|||||||
|
## 2.3.0 (February 7, 2013)
|
||||||
|
|
||||||
|
Minor release to add carousel indicators, improve tooltips, improve dev setup, and fix hella bugs.
|
||||||
|
|
||||||
|
- **Repository changes:**
|
||||||
|
- **Local instead of global dependencies** for our makefile and install process. Now getting started is way easier—just run `npm install`.
|
||||||
|
- Upgraded to jQuery 1.9. No changes were needed, but we did upgrade the included jQuery file to the latest release.
|
||||||
|
- Moved changelog to be within the repo instead of as a wiki page.
|
||||||
|
- **New and improved features:**
|
||||||
|
- **Added carousel indicators!** Add the HTML and it automagically works.
|
||||||
|
- **Added `container` option to tooltips.** The default option is still `insertAfter`, but now you may specify where to insert tooltips (and by extension, popovers) with the optional container parameter.
|
||||||
|
- Improved popovers now utilize `max-width` instead of `width`, have been widened from 240px to 280px, and will automatically hide the title if one has not been set via CSS `:empty` selector.
|
||||||
|
- Improved tooltip alignment on edges with [#6713](https://github.com/twitter/bootstrap/pull/6713).
|
||||||
|
- **Improved accessibility for links in all components.** After merging [#6441](https://github.com/twitter/bootstrap/pull/6441), link hover states now apply to the `:focus` state as well. This goes for basic `<a>` tags, as well as buttons, navs, dropdowns, and more.
|
||||||
|
- Added print utility classes to show and hide content between `screen` and `print` via CSS.
|
||||||
|
- Updated input groups to make them behave more like default form controls. Added `display: inline-block;`, increased `margin-bottom`, and added `vertical-align: middle;` to match `<input>` styles.
|
||||||
|
- Added `.horizontal-three-colors()` gradient mixin (with example in the CSS tests file).
|
||||||
|
- Added `.text-left`, `.text-center`, and `.text-right` utility classes for easy typographic alignment.
|
||||||
|
- Added `@ms-viewport` so IE10 can use responsive CSS when in split-screen mode.
|
||||||
|
- **Docs changes:**
|
||||||
|
- Added [new justified navigation example](https://f.cloud.github.com/assets/98681/25869/5e2f812c-4afa-11e2-9293-501cd689232d.png).
|
||||||
|
- Added sticky footer with fixed navbar example.
|
||||||
|
|
||||||
|
See more on the [2.3.0 pull request](https://github.com/twitter/bootstrap/pull/6346).
|
||||||
|
|
||||||
|
|
||||||
## 2.2.2 (December 8, 2012)
|
## 2.2.2 (December 8, 2012)
|
||||||
|
|
||||||
Bugfix release addressing docs, CSS, and some JavaScript issues. Key changes include:
|
Bugfix release addressing docs, CSS, and some JavaScript issues. Key changes include:
|
||||||
|
19
docs/assets/js/bootstrap-modal.js
vendored
19
docs/assets/js/bootstrap-modal.js
vendored
@ -138,12 +138,13 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
, hideModal: function (that) {
|
, hideModal: function () {
|
||||||
this.$element
|
var that = this
|
||||||
.hide()
|
this.$element.hide()
|
||||||
.trigger('hidden')
|
this.backdrop(function () {
|
||||||
|
that.removeBackdrop()
|
||||||
this.backdrop()
|
that.$element.trigger('hidden')
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
, removeBackdrop: function () {
|
, removeBackdrop: function () {
|
||||||
@ -171,6 +172,8 @@
|
|||||||
|
|
||||||
this.$backdrop.addClass('in')
|
this.$backdrop.addClass('in')
|
||||||
|
|
||||||
|
if (!callback) return
|
||||||
|
|
||||||
doAnimate ?
|
doAnimate ?
|
||||||
this.$backdrop.one($.support.transition.end, callback) :
|
this.$backdrop.one($.support.transition.end, callback) :
|
||||||
callback()
|
callback()
|
||||||
@ -179,8 +182,8 @@
|
|||||||
this.$backdrop.removeClass('in')
|
this.$backdrop.removeClass('in')
|
||||||
|
|
||||||
$.support.transition && this.$element.hasClass('fade')?
|
$.support.transition && this.$element.hasClass('fade')?
|
||||||
this.$backdrop.one($.support.transition.end, $.proxy(this.removeBackdrop, this)) :
|
this.$backdrop.one($.support.transition.end, callback) :
|
||||||
this.removeBackdrop()
|
callback()
|
||||||
|
|
||||||
} else if (callback) {
|
} else if (callback) {
|
||||||
callback()
|
callback()
|
||||||
|
2
docs/assets/js/bootstrap-tooltip.js
vendored
2
docs/assets/js/bootstrap-tooltip.js
vendored
@ -245,7 +245,7 @@
|
|||||||
, fixTitle: function () {
|
, fixTitle: function () {
|
||||||
var $e = this.$element
|
var $e = this.$element
|
||||||
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
||||||
$e.attr('data-original-title', $e.attr('title') || '').removeAttr('title')
|
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
docs/assets/js/bootstrap-typeahead.js
vendored
1
docs/assets/js/bootstrap-typeahead.js
vendored
@ -329,7 +329,6 @@
|
|||||||
$(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
|
$(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
if ($this.data('typeahead')) return
|
if ($this.data('typeahead')) return
|
||||||
e.preventDefault()
|
|
||||||
$this.typeahead($this.data())
|
$this.typeahead($this.data())
|
||||||
})
|
})
|
||||||
|
|
||||||
|
22
docs/assets/js/bootstrap.js
vendored
22
docs/assets/js/bootstrap.js
vendored
@ -936,12 +936,13 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
, hideModal: function (that) {
|
, hideModal: function () {
|
||||||
this.$element
|
var that = this
|
||||||
.hide()
|
this.$element.hide()
|
||||||
.trigger('hidden')
|
this.backdrop(function () {
|
||||||
|
that.removeBackdrop()
|
||||||
this.backdrop()
|
that.$element.trigger('hidden')
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
, removeBackdrop: function () {
|
, removeBackdrop: function () {
|
||||||
@ -969,6 +970,8 @@
|
|||||||
|
|
||||||
this.$backdrop.addClass('in')
|
this.$backdrop.addClass('in')
|
||||||
|
|
||||||
|
if (!callback) return
|
||||||
|
|
||||||
doAnimate ?
|
doAnimate ?
|
||||||
this.$backdrop.one($.support.transition.end, callback) :
|
this.$backdrop.one($.support.transition.end, callback) :
|
||||||
callback()
|
callback()
|
||||||
@ -977,8 +980,8 @@
|
|||||||
this.$backdrop.removeClass('in')
|
this.$backdrop.removeClass('in')
|
||||||
|
|
||||||
$.support.transition && this.$element.hasClass('fade')?
|
$.support.transition && this.$element.hasClass('fade')?
|
||||||
this.$backdrop.one($.support.transition.end, $.proxy(this.removeBackdrop, this)) :
|
this.$backdrop.one($.support.transition.end, callback) :
|
||||||
this.removeBackdrop()
|
callback()
|
||||||
|
|
||||||
} else if (callback) {
|
} else if (callback) {
|
||||||
callback()
|
callback()
|
||||||
@ -1291,7 +1294,7 @@
|
|||||||
, fixTitle: function () {
|
, fixTitle: function () {
|
||||||
var $e = this.$element
|
var $e = this.$element
|
||||||
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
||||||
$e.attr('data-original-title', $e.attr('title') || '').removeAttr('title')
|
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2146,7 +2149,6 @@
|
|||||||
$(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
|
$(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
if ($this.data('typeahead')) return
|
if ($this.data('typeahead')) return
|
||||||
e.preventDefault()
|
|
||||||
$this.typeahead($this.data())
|
$this.typeahead($this.data())
|
||||||
})
|
})
|
||||||
|
|
||||||
|
2
docs/assets/js/bootstrap.min.js
vendored
2
docs/assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
@ -803,6 +803,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h3>Tooltips in input groups</h3>
|
||||||
|
<p>When using tooltips and popovers with the Bootstrap input groups, you'll have to set the <code>container</code> (documented below) option to avoid unwanted side effects.</p>
|
||||||
|
|
||||||
<hr class="bs-docs-separator">
|
<hr class="bs-docs-separator">
|
||||||
|
|
||||||
|
|
||||||
|
3
docs/templates/pages/javascript.mustache
vendored
3
docs/templates/pages/javascript.mustache
vendored
@ -736,6 +736,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
|
|||||||
</div>{{! /example }}
|
</div>{{! /example }}
|
||||||
|
|
||||||
|
|
||||||
|
<h3>{{_i}}Tooltips in input groups{{/i}}</h3>
|
||||||
|
<p>{{_i}}When using tooltips and popovers with the Bootstrap input groups, you'll have to set the <code>container</code> (documented below) option to avoid unwanted side effects.{{/i}}</p>
|
||||||
|
|
||||||
<hr class="bs-docs-separator">
|
<hr class="bs-docs-separator">
|
||||||
|
|
||||||
|
|
||||||
|
19
js/bootstrap-modal.js
vendored
19
js/bootstrap-modal.js
vendored
@ -138,12 +138,13 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
, hideModal: function (that) {
|
, hideModal: function () {
|
||||||
this.$element
|
var that = this
|
||||||
.hide()
|
this.$element.hide()
|
||||||
.trigger('hidden')
|
this.backdrop(function () {
|
||||||
|
that.removeBackdrop()
|
||||||
this.backdrop()
|
that.$element.trigger('hidden')
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
, removeBackdrop: function () {
|
, removeBackdrop: function () {
|
||||||
@ -171,6 +172,8 @@
|
|||||||
|
|
||||||
this.$backdrop.addClass('in')
|
this.$backdrop.addClass('in')
|
||||||
|
|
||||||
|
if (!callback) return
|
||||||
|
|
||||||
doAnimate ?
|
doAnimate ?
|
||||||
this.$backdrop.one($.support.transition.end, callback) :
|
this.$backdrop.one($.support.transition.end, callback) :
|
||||||
callback()
|
callback()
|
||||||
@ -179,8 +182,8 @@
|
|||||||
this.$backdrop.removeClass('in')
|
this.$backdrop.removeClass('in')
|
||||||
|
|
||||||
$.support.transition && this.$element.hasClass('fade')?
|
$.support.transition && this.$element.hasClass('fade')?
|
||||||
this.$backdrop.one($.support.transition.end, $.proxy(this.removeBackdrop, this)) :
|
this.$backdrop.one($.support.transition.end, callback) :
|
||||||
this.removeBackdrop()
|
callback()
|
||||||
|
|
||||||
} else if (callback) {
|
} else if (callback) {
|
||||||
callback()
|
callback()
|
||||||
|
2
js/bootstrap-tooltip.js
vendored
2
js/bootstrap-tooltip.js
vendored
@ -245,7 +245,7 @@
|
|||||||
, fixTitle: function () {
|
, fixTitle: function () {
|
||||||
var $e = this.$element
|
var $e = this.$element
|
||||||
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
||||||
$e.attr('data-original-title', $e.attr('title') || '').removeAttr('title')
|
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
js/bootstrap-typeahead.js
vendored
1
js/bootstrap-typeahead.js
vendored
@ -329,7 +329,6 @@
|
|||||||
$(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
|
$(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
if ($this.data('typeahead')) return
|
if ($this.data('typeahead')) return
|
||||||
e.preventDefault()
|
|
||||||
$this.typeahead($this.data())
|
$this.typeahead($this.data())
|
||||||
})
|
})
|
||||||
|
|
||||||
|
4
js/tests/unit/bootstrap-tooltip.js
vendored
4
js/tests/unit/bootstrap-tooltip.js
vendored
@ -22,9 +22,9 @@ $(function () {
|
|||||||
ok(!!$.fn.tooltip.defaults, 'defaults is defined')
|
ok(!!$.fn.tooltip.defaults, 'defaults is defined')
|
||||||
})
|
})
|
||||||
|
|
||||||
test("should remove title attribute", function () {
|
test("should empty title attribute", function () {
|
||||||
var tooltip = $('<a href="#" rel="tooltip" title="Another tooltip"></a>').tooltip()
|
var tooltip = $('<a href="#" rel="tooltip" title="Another tooltip"></a>').tooltip()
|
||||||
ok(!tooltip.attr('title'), 'title tag was removed')
|
ok(tooltip.attr('title') === '', 'title attribute was emptied')
|
||||||
})
|
})
|
||||||
|
|
||||||
test("should add data attribute for referencing original title", function () {
|
test("should add data attribute for referencing original title", function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user