bootstrap-sass 2.1.1.0 → 2.2.1.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bootstrap-sass might be problematic. Click here for more details.
- data/README.md +7 -5
- data/lib/bootstrap-sass/compass_functions.rb +9 -5
- data/vendor/assets/javascripts/bootstrap-affix.js +4 -2
- data/vendor/assets/javascripts/bootstrap-alert.js +2 -4
- data/vendor/assets/javascripts/bootstrap-button.js +5 -7
- data/vendor/assets/javascripts/bootstrap-carousel.js +12 -12
- data/vendor/assets/javascripts/bootstrap-collapse.js +9 -11
- data/vendor/assets/javascripts/bootstrap-dropdown.js +9 -11
- data/vendor/assets/javascripts/bootstrap-modal.js +20 -25
- data/vendor/assets/javascripts/bootstrap-popover.js +1 -1
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +1 -1
- data/vendor/assets/javascripts/bootstrap-tab.js +5 -7
- data/vendor/assets/javascripts/bootstrap-tooltip.js +12 -11
- data/vendor/assets/javascripts/bootstrap-transition.js +5 -5
- data/vendor/assets/javascripts/bootstrap-typeahead.js +19 -9
- data/vendor/assets/stylesheets/bootstrap-responsive.scss +1 -0
- data/vendor/assets/stylesheets/bootstrap.scss +1 -0
- data/vendor/assets/stylesheets/bootstrap/_accordion.scss +2 -2
- data/vendor/assets/stylesheets/bootstrap/_alerts.scss +2 -2
- data/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss +1 -1
- data/vendor/assets/stylesheets/bootstrap/_button-groups.scss +5 -8
- data/vendor/assets/stylesheets/bootstrap/_buttons.scss +18 -17
- data/vendor/assets/stylesheets/bootstrap/_carousel.scss +4 -4
- data/vendor/assets/stylesheets/bootstrap/_close.scss +3 -3
- data/vendor/assets/stylesheets/bootstrap/_code.scss +3 -3
- data/vendor/assets/stylesheets/bootstrap/_component-animations.scss +1 -1
- data/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +34 -7
- data/vendor/assets/stylesheets/bootstrap/_forms.scss +50 -18
- data/vendor/assets/stylesheets/bootstrap/_grid.scss +2 -1
- data/vendor/assets/stylesheets/bootstrap/_hero-unit.scss +7 -6
- data/vendor/assets/stylesheets/bootstrap/_labels-badges.scss +15 -14
- data/vendor/assets/stylesheets/bootstrap/_layouts.scss +1 -1
- data/vendor/assets/stylesheets/bootstrap/_media.scss +55 -0
- data/vendor/assets/stylesheets/bootstrap/_mixins.scss +99 -62
- data/vendor/assets/stylesheets/bootstrap/_modals.scss +12 -15
- data/vendor/assets/stylesheets/bootstrap/_navbar.scss +11 -11
- data/vendor/assets/stylesheets/bootstrap/_navs.scss +5 -4
- data/vendor/assets/stylesheets/bootstrap/_pager.scss +11 -10
- data/vendor/assets/stylesheets/bootstrap/_pagination.scss +70 -13
- data/vendor/assets/stylesheets/bootstrap/_popovers.scss +4 -4
- data/vendor/assets/stylesheets/bootstrap/_progress-bars.scss +5 -5
- data/vendor/assets/stylesheets/bootstrap/_reset.scss +8 -6
- data/vendor/assets/stylesheets/bootstrap/_responsive-1200px-min.scss +1 -1
- data/vendor/assets/stylesheets/bootstrap/_responsive-767px-max.scss +20 -1
- data/vendor/assets/stylesheets/bootstrap/_responsive-768px-979px.scss +1 -1
- data/vendor/assets/stylesheets/bootstrap/_responsive-navbar.scss +13 -5
- data/vendor/assets/stylesheets/bootstrap/_responsive-utilities.scss +16 -1
- data/vendor/assets/stylesheets/bootstrap/_scaffolding.scss +1 -1
- data/vendor/assets/stylesheets/bootstrap/_sprites.scss +5 -5
- data/vendor/assets/stylesheets/bootstrap/_tables.scss +11 -11
- data/vendor/assets/stylesheets/bootstrap/_thumbnails.scss +4 -4
- data/vendor/assets/stylesheets/bootstrap/_tooltip.scss +3 -3
- data/vendor/assets/stylesheets/bootstrap/_type.scss +32 -26
- data/vendor/assets/stylesheets/bootstrap/_utilities.scss +16 -1
- data/vendor/assets/stylesheets/bootstrap/_variables.scss +28 -6
- data/vendor/assets/stylesheets/bootstrap/_wells.scss +5 -5
- data/vendor/assets/stylesheets/bootstrap/bootstrap.scss +63 -0
- data/vendor/assets/stylesheets/bootstrap/responsive.scss +48 -0
- metadata +25 -6
- data/vendor/assets/stylesheets/_bootstrap-responsive.scss +0 -42
- data/vendor/assets/stylesheets/_bootstrap.scss +0 -62
data/README.md
CHANGED
@@ -12,8 +12,8 @@ Enjoy.
|
|
12
12
|
|
13
13
|
In your Gemfile:
|
14
14
|
|
15
|
-
gem 'sass-rails', '~> 3.
|
16
|
-
gem 'bootstrap-sass', '~> 2.
|
15
|
+
gem 'sass-rails', '~> 3.2'
|
16
|
+
gem 'bootstrap-sass', '~> 2.2.1.0'
|
17
17
|
|
18
18
|
#### CSS
|
19
19
|
|
@@ -88,13 +88,15 @@ Some CSS3 properties take multiple values, such as `box-shadow` or `text-shadow`
|
|
88
88
|
As per the Bootstrap project we don't include the responsive styles by default. `@import "bootstrap-responsive";` to get them.
|
89
89
|
|
90
90
|
## Versioning
|
91
|
-
Bootstrap [claims](https://github.com/twitter/bootstrap#versioning) to use SemVer, although this is for values of public API that don't seem to include selectively requiring CSS components (see breaking change 2.0.2 -> 2.0.3). Since many people using bootstrap-sass *do* selectively require CSS components and I consider it part of the public API we can't really follow SemVer without becoming wildly out of sync with the Bootstrap version number, which is confusing for everyone involved. Further releases to bootstrap-sass will therefore have version numbers of the form `2.x.
|
91
|
+
Bootstrap [claims](https://github.com/twitter/bootstrap#versioning) to use SemVer, although this is for values of public API that don't seem to include selectively requiring CSS components (see breaking change 2.0.2 -> 2.0.3). Since many people using bootstrap-sass *do* selectively require CSS components and I consider it part of the public API we can't really follow SemVer without becoming wildly out of sync with the Bootstrap version number, which is confusing for everyone involved. Further releases to bootstrap-sass will therefore have version numbers of the form `2.x.y.z`, where `2.x.y` is the release of Bootstrap we should be compatible with, and `y` is the patch version.
|
92
|
+
|
93
|
+
Basically this means you should expect to append a separate patch version to the bootstrap version, which allows our versioning to stay more honest about changes.
|
92
94
|
|
93
95
|
### Bundler?
|
94
96
|
|
95
|
-
gem 'bootstrap-sass', '~> 2.
|
97
|
+
gem 'bootstrap-sass', '~> 2.2.1.0'
|
96
98
|
|
97
|
-
Don't use the standard `~> 2.
|
99
|
+
Don't use the standard `~> 2.x.y`. Your apps may break.
|
98
100
|
|
99
101
|
## Who
|
100
102
|
bootstrap-sass is a project by [Thomas McDonald](https://twitter.com/#!/thomasmcdonald_), with support from [other awesome people](https://github.com/thomas-mcdonald/bootstrap-sass/graphs/contributors).
|
@@ -1,10 +1,14 @@
|
|
1
1
|
# This contains functions for use with a project *only* using Compass.
|
2
2
|
|
3
3
|
module Sass::Script::Functions
|
4
|
-
# Define
|
5
|
-
def
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
# Define image_path for Compass to allow use of sprites without url() wrapper.
|
5
|
+
def image_path(asset)
|
6
|
+
if defined?(::Compass)
|
7
|
+
image_url(asset, Sass::Script::Bool.new(true))
|
8
|
+
else
|
9
|
+
# Revert to the old compass-agnostic path determination
|
10
|
+
asset_sans_quotes = asset.value.gsub('"', '')
|
11
|
+
Sass::Script::String.new("/images/#{asset_sans_quotes}", :string)
|
12
|
+
end
|
9
13
|
end
|
10
14
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ==========================================================
|
2
|
-
* bootstrap-affix.js v2.
|
2
|
+
* bootstrap-affix.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#affix
|
4
4
|
* ==========================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -28,7 +28,9 @@
|
|
28
28
|
|
29
29
|
var Affix = function (element, options) {
|
30
30
|
this.options = $.extend({}, $.fn.affix.defaults, options)
|
31
|
-
this.$window = $(window)
|
31
|
+
this.$window = $(window)
|
32
|
+
.on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
|
33
|
+
.on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this))
|
32
34
|
this.$element = $(element)
|
33
35
|
this.checkPosition()
|
34
36
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ==========================================================
|
2
|
-
* bootstrap-alert.js v2.
|
2
|
+
* bootstrap-alert.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
4
4
|
* ==========================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -83,8 +83,6 @@
|
|
83
83
|
/* ALERT DATA-API
|
84
84
|
* ============== */
|
85
85
|
|
86
|
-
$(
|
87
|
-
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
|
88
|
-
})
|
86
|
+
$(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
|
89
87
|
|
90
88
|
}(window.jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ============================================================
|
2
|
-
* bootstrap-button.js v2.
|
2
|
+
* bootstrap-button.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#buttons
|
4
4
|
* ============================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -85,12 +85,10 @@
|
|
85
85
|
/* BUTTON DATA-API
|
86
86
|
* =============== */
|
87
87
|
|
88
|
-
$(function () {
|
89
|
-
$
|
90
|
-
|
91
|
-
|
92
|
-
$btn.button('toggle')
|
93
|
-
})
|
88
|
+
$(document).on('click.button.data-api', '[data-toggle^=button]', function (e) {
|
89
|
+
var $btn = $(e.target)
|
90
|
+
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
|
91
|
+
$btn.button('toggle')
|
94
92
|
})
|
95
93
|
|
96
94
|
}(window.jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ==========================================================
|
2
|
-
* bootstrap-carousel.js v2.
|
2
|
+
* bootstrap-carousel.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#carousel
|
4
4
|
* ==========================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -94,9 +94,7 @@
|
|
94
94
|
, direction = type == 'next' ? 'left' : 'right'
|
95
95
|
, fallback = type == 'next' ? 'first' : 'last'
|
96
96
|
, that = this
|
97
|
-
, e
|
98
|
-
relatedTarget: $next[0]
|
99
|
-
})
|
97
|
+
, e
|
100
98
|
|
101
99
|
this.sliding = true
|
102
100
|
|
@@ -104,6 +102,10 @@
|
|
104
102
|
|
105
103
|
$next = $next.length ? $next : this.$element.find('.item')[fallback]()
|
106
104
|
|
105
|
+
e = $.Event('slide', {
|
106
|
+
relatedTarget: $next[0]
|
107
|
+
})
|
108
|
+
|
107
109
|
if ($next.hasClass('active')) return
|
108
110
|
|
109
111
|
if ($.support.transition && this.$element.hasClass('slide')) {
|
@@ -163,14 +165,12 @@
|
|
163
165
|
/* CAROUSEL DATA-API
|
164
166
|
* ================= */
|
165
167
|
|
166
|
-
$(function () {
|
167
|
-
$
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
e.preventDefault()
|
173
|
-
})
|
168
|
+
$(document).on('click.carousel.data-api', '[data-slide]', function (e) {
|
169
|
+
var $this = $(this), href
|
170
|
+
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
171
|
+
, options = $.extend({}, $target.data(), $this.data())
|
172
|
+
$target.carousel(options)
|
173
|
+
e.preventDefault()
|
174
174
|
})
|
175
175
|
|
176
176
|
}(window.jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* =============================================================
|
2
|
-
* bootstrap-collapse.js v2.
|
2
|
+
* bootstrap-collapse.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#collapse
|
4
4
|
* =============================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -143,16 +143,14 @@
|
|
143
143
|
/* COLLAPSIBLE DATA-API
|
144
144
|
* ==================== */
|
145
145
|
|
146
|
-
$(function () {
|
147
|
-
$
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
$(target).collapse(option)
|
155
|
-
})
|
146
|
+
$(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
|
147
|
+
var $this = $(this), href
|
148
|
+
, target = $this.attr('data-target')
|
149
|
+
|| e.preventDefault()
|
150
|
+
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
|
151
|
+
, option = $(target).data('collapse') ? 'toggle' : $this.data()
|
152
|
+
$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
|
153
|
+
$(target).collapse(option)
|
156
154
|
})
|
157
155
|
|
158
156
|
}(window.jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ============================================================
|
2
|
-
* bootstrap-dropdown.js v2.
|
2
|
+
* bootstrap-dropdown.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
|
4
4
|
* ============================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -100,8 +100,9 @@
|
|
100
100
|
}
|
101
101
|
|
102
102
|
function clearMenus() {
|
103
|
-
|
104
|
-
.removeClass('open')
|
103
|
+
$(toggle).each(function () {
|
104
|
+
getParent($(this)).removeClass('open')
|
105
|
+
})
|
105
106
|
}
|
106
107
|
|
107
108
|
function getParent($this) {
|
@@ -138,13 +139,10 @@
|
|
138
139
|
/* APPLY TO STANDARD DROPDOWN ELEMENTS
|
139
140
|
* =================================== */
|
140
141
|
|
141
|
-
$(
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
.on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
|
147
|
-
.on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
|
148
|
-
})
|
142
|
+
$(document)
|
143
|
+
.on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus)
|
144
|
+
.on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
|
145
|
+
.on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
|
146
|
+
.on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
|
149
147
|
|
150
148
|
}(window.jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* =========================================================
|
2
|
-
* bootstrap-modal.js v2.
|
2
|
+
* bootstrap-modal.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#modals
|
4
4
|
* =========================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -49,8 +49,6 @@
|
|
49
49
|
|
50
50
|
if (this.isShown || e.isDefaultPrevented()) return
|
51
51
|
|
52
|
-
$('body').addClass('modal-open')
|
53
|
-
|
54
52
|
this.isShown = true
|
55
53
|
|
56
54
|
this.escape()
|
@@ -72,13 +70,12 @@
|
|
72
70
|
that.$element
|
73
71
|
.addClass('in')
|
74
72
|
.attr('aria-hidden', false)
|
75
|
-
.focus()
|
76
73
|
|
77
74
|
that.enforceFocus()
|
78
75
|
|
79
76
|
transition ?
|
80
|
-
that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) :
|
81
|
-
that.$element.trigger('shown')
|
77
|
+
that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) :
|
78
|
+
that.$element.focus().trigger('shown')
|
82
79
|
|
83
80
|
})
|
84
81
|
}
|
@@ -96,8 +93,6 @@
|
|
96
93
|
|
97
94
|
this.isShown = false
|
98
95
|
|
99
|
-
$('body').removeClass('modal-open')
|
100
|
-
|
101
96
|
this.escape()
|
102
97
|
|
103
98
|
$(document).off('focusin.modal')
|
@@ -167,9 +162,11 @@
|
|
167
162
|
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
|
168
163
|
.appendTo(document.body)
|
169
164
|
|
170
|
-
|
171
|
-
this
|
172
|
-
|
165
|
+
this.$backdrop.click(
|
166
|
+
this.options.backdrop == 'static' ?
|
167
|
+
$.proxy(this.$element[0].focus, this.$element[0])
|
168
|
+
: $.proxy(this.hide, this)
|
169
|
+
)
|
173
170
|
|
174
171
|
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
|
175
172
|
|
@@ -219,21 +216,19 @@
|
|
219
216
|
/* MODAL DATA-API
|
220
217
|
* ============== */
|
221
218
|
|
222
|
-
$(function () {
|
223
|
-
$
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
, option = $target.data('modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
|
219
|
+
$(document).on('click.modal.data-api', '[data-toggle="modal"]', function (e) {
|
220
|
+
var $this = $(this)
|
221
|
+
, href = $this.attr('href')
|
222
|
+
, $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
|
223
|
+
, option = $target.data('modal') ? 'toggle' : $.extend({ remote:!/#/.test(href) && href }, $target.data(), $this.data())
|
228
224
|
|
229
|
-
|
225
|
+
e.preventDefault()
|
230
226
|
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
})
|
227
|
+
$target
|
228
|
+
.modal(option)
|
229
|
+
.one('hide', function () {
|
230
|
+
$this.focus()
|
231
|
+
})
|
237
232
|
})
|
238
233
|
|
239
|
-
}(window.jQuery);
|
234
|
+
}(window.jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ===========================================================
|
2
|
-
* bootstrap-popover.js v2.
|
2
|
+
* bootstrap-popover.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#popovers
|
4
4
|
* ===========================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* =============================================================
|
2
|
-
* bootstrap-scrollspy.js v2.
|
2
|
+
* bootstrap-scrollspy.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
|
4
4
|
* =============================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================
|
2
|
-
* bootstrap-tab.js v2.
|
2
|
+
* bootstrap-tab.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
4
4
|
* ========================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -49,7 +49,7 @@
|
|
49
49
|
|
50
50
|
if ( $this.parent('li').hasClass('active') ) return
|
51
51
|
|
52
|
-
previous = $ul.find('.active a')
|
52
|
+
previous = $ul.find('.active:last a')[0]
|
53
53
|
|
54
54
|
e = $.Event('show', {
|
55
55
|
relatedTarget: previous
|
@@ -125,11 +125,9 @@
|
|
125
125
|
/* TAB DATA-API
|
126
126
|
* ============ */
|
127
127
|
|
128
|
-
$(function () {
|
129
|
-
|
130
|
-
|
131
|
-
$(this).tab('show')
|
132
|
-
})
|
128
|
+
$(document).on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
|
129
|
+
e.preventDefault()
|
130
|
+
$(this).tab('show')
|
133
131
|
})
|
134
132
|
|
135
133
|
}(window.jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ===========================================================
|
2
|
-
* bootstrap-tooltip.js v2.
|
2
|
+
* bootstrap-tooltip.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#tooltips
|
4
4
|
* Inspired by the original jQuery.tipsy by Jason Frame
|
5
5
|
* ===========================================================
|
@@ -119,9 +119,9 @@
|
|
119
119
|
inside = /in/.test(placement)
|
120
120
|
|
121
121
|
$tip
|
122
|
-
.
|
122
|
+
.detach()
|
123
123
|
.css({ top: 0, left: 0, display: 'block' })
|
124
|
-
.
|
124
|
+
.insertAfter(this.$element)
|
125
125
|
|
126
126
|
pos = this.getPosition(inside)
|
127
127
|
|
@@ -144,7 +144,7 @@
|
|
144
144
|
}
|
145
145
|
|
146
146
|
$tip
|
147
|
-
.
|
147
|
+
.offset(tp)
|
148
148
|
.addClass(placement)
|
149
149
|
.addClass('in')
|
150
150
|
}
|
@@ -166,18 +166,18 @@
|
|
166
166
|
|
167
167
|
function removeWithAnimation() {
|
168
168
|
var timeout = setTimeout(function () {
|
169
|
-
$tip.off($.support.transition.end).
|
169
|
+
$tip.off($.support.transition.end).detach()
|
170
170
|
}, 500)
|
171
171
|
|
172
172
|
$tip.one($.support.transition.end, function () {
|
173
173
|
clearTimeout(timeout)
|
174
|
-
$tip.
|
174
|
+
$tip.detach()
|
175
175
|
})
|
176
176
|
}
|
177
177
|
|
178
178
|
$.support.transition && this.$tip.hasClass('fade') ?
|
179
179
|
removeWithAnimation() :
|
180
|
-
$tip.
|
180
|
+
$tip.detach()
|
181
181
|
|
182
182
|
return this
|
183
183
|
}
|
@@ -235,8 +235,9 @@
|
|
235
235
|
this.enabled = !this.enabled
|
236
236
|
}
|
237
237
|
|
238
|
-
, toggle: function () {
|
239
|
-
|
238
|
+
, toggle: function (e) {
|
239
|
+
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
240
|
+
self[self.tip().hasClass('in') ? 'hide' : 'show']()
|
240
241
|
}
|
241
242
|
|
242
243
|
, destroy: function () {
|
@@ -269,7 +270,7 @@
|
|
269
270
|
, trigger: 'hover'
|
270
271
|
, title: ''
|
271
272
|
, delay: 0
|
272
|
-
, html:
|
273
|
+
, html: false
|
273
274
|
}
|
274
275
|
|
275
|
-
}(window.jQuery);
|
276
|
+
}(window.jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ===================================================
|
2
|
-
* bootstrap-transition.js v2.
|
2
|
+
* bootstrap-transition.js v2.2.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
4
4
|
* ===================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -20,13 +20,13 @@
|
|
20
20
|
|
21
21
|
!function ($) {
|
22
22
|
|
23
|
-
|
23
|
+
"use strict"; // jshint ;_;
|
24
24
|
|
25
|
-
"use strict"; // jshint ;_;
|
26
25
|
|
26
|
+
/* CSS TRANSITION SUPPORT (http://www.modernizr.com/)
|
27
|
+
* ======================================================= */
|
27
28
|
|
28
|
-
|
29
|
-
* ======================================================= */
|
29
|
+
$(function () {
|
30
30
|
|
31
31
|
$.support.transition = (function () {
|
32
32
|
|