diff options
| author | Mark Otto <[email protected]> | 2014-05-20 23:21:12 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-05-20 23:21:12 -0700 |
| commit | 91d51d3fba1cc2f80138bb2858ce67c28c9c8a89 (patch) | |
| tree | 32fd8faabe6fdb8d17aea70fc7ccd56524d92aba /dist/js/bootstrap.js | |
| parent | c42cd8164c8698cbc3acfbb99e525bd8f195d819 (diff) | |
| parent | 3dd1531d81c90d6d1cf04962032f868d315ab21c (diff) | |
| download | bootstrap-91d51d3fba1cc2f80138bb2858ce67c28c9c8a89.tar.xz bootstrap-91d51d3fba1cc2f80138bb2858ce67c28c9c8a89.zip | |
Merge branch 'master' into icon_paths
Diffstat (limited to 'dist/js/bootstrap.js')
| -rw-r--r-- | dist/js/bootstrap.js | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 7acbd50df..ea770c956 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -75,6 +75,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re $(el).on('click', dismiss, this.close) } + Alert.VERSION = '3.1.1' + Alert.prototype.close = function (e) { var $this = $(this) var selector = $this.attr('data-target') @@ -167,6 +169,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re this.isLoading = false } + Button.VERSION = '3.1.1' + Button.DEFAULTS = { loadingText: 'loading...' } @@ -285,6 +289,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re .on('mouseleave', $.proxy(this.cycle, this)) } + Carousel.VERSION = '3.1.1' + Carousel.DEFAULTS = { interval: 5000, pause: 'hover', @@ -488,6 +494,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re if (this.options.toggle) this.toggle() } + Collapse.VERSION = '3.1.1' + Collapse.DEFAULTS = { toggle: true } @@ -664,6 +672,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re $(element).on('click.bs.dropdown', this.toggle) } + Dropdown.VERSION = '3.1.1' + Dropdown.prototype.toggle = function (e) { var $this = $(this) @@ -825,6 +835,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re } } + Modal.VERSION = '3.1.1' + Modal.DEFAULTS = { backdrop: true, keyboard: true, @@ -1096,6 +1108,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re this.init('tooltip', element, options) } + Tooltip.VERSION = '3.1.1' + Tooltip.DEFAULTS = { animation: true, placement: 'top', @@ -1532,6 +1546,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js') + Popover.VERSION = '3.1.1' + Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, { placement: 'right', trigger: 'click', @@ -1657,6 +1673,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re this.process() } + ScrollSpy.VERSION = '3.1.1' + ScrollSpy.DEFAULTS = { offset: 10 } @@ -1799,6 +1817,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re this.element = $(element) } + Tab.VERSION = '3.1.1' + Tab.prototype.show = function () { var $this = this.element var $ul = $this.closest('ul:not(.dropdown-menu)') @@ -1822,7 +1842,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re var $target = $(selector) - this.activate($this.parent('li'), $ul) + this.activate($this.closest('li'), $ul) this.activate($target, $target.parent(), function () { $this.trigger({ type: 'shown.bs.tab', @@ -1936,7 +1956,9 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re this.checkPosition() } - Affix.RESET = 'affix affix-top affix-bottom' + Affix.VERSION = '3.1.1' + + Affix.RESET = 'affix affix-top affix-bottom' Affix.DEFAULTS = { offset: 0 |
