Skip to content

Commit 8f66361

Browse files
committed
* bootstrap 3.3.5
* Test against Rails 4.2.2 and 4.1.11
1 parent 82c7f3d commit 8f66361

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+351
-183
lines changed

Appraisals

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appraise 'rails-3.2' do
2-
gem 'rails', '3.2.21'
2+
gem 'rails', '3.2.22'
33
gem 'minitest', '~> 4.7'
44
end
55

@@ -8,9 +8,9 @@ appraise 'rails-4.0' do
88
end
99

1010
appraise 'rails-4.1' do
11-
gem 'rails', '4.1.10'
11+
gem 'rails', '4.1.11'
1212
end
1313

1414
appraise 'rails-4.2' do
15-
gem 'rails', '4.2.1'
15+
gem 'rails', '4.2.2'
1616
end

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 2.20.0.dev
4+
5+
* bootstrap 3.3.5
6+
* Test against Rails 3.22, 4.1.11 and 4.2.2
7+
38
## 2.19.0
49

510
* bootstrap 3.3.4

gemfiles/rails_3.2.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "rails", "3.2.21"
5+
gem "rails", "3.2.22"
66
gem "minitest", "~> 4.7"
77

88
gemspec :path => "../"

gemfiles/rails_4.1.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
source "https://rubygems.org"
44

5-
gem "rails", "4.1.10"
5+
gem "rails", "4.1.11"
66

77
gemspec :path => "../"

gemfiles/rails_4.2.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
source "https://rubygems.org"
44

5-
gem "rails", "4.2.1"
5+
gem "rails", "4.2.2"
66

77
gemspec :path => "../"

lib/twbs_less_rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module TwbsLessRails
2-
VERSION = "2.19.0"
2+
VERSION = "2.20.0.dev"
33
end

src/twbs/bootstrap

Submodule bootstrap updated 165 files

vendor/assets/javascripts/twbs/bootstrap/affix.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* ========================================================================
2-
* Bootstrap: affix.js v3.3.4
2+
* Bootstrap: affix.js v3.3.5
33
* http://getbootstrap.com/javascript/#affix
44
* ========================================================================
55
* Copyright 2011-2015 Twitter, Inc.
@@ -28,7 +28,7 @@
2828
this.checkPosition()
2929
}
3030

31-
Affix.VERSION = '3.3.4'
31+
Affix.VERSION = '3.3.5'
3232

3333
Affix.RESET = 'affix affix-top affix-bottom'
3434

@@ -78,7 +78,7 @@
7878
var offset = this.options.offset
7979
var offsetTop = offset.top
8080
var offsetBottom = offset.bottom
81-
var scrollHeight = $(document.body).height()
81+
var scrollHeight = Math.max($(document).height(), $(document.body).height())
8282

8383
if (typeof offset != 'object') offsetBottom = offsetTop = offset
8484
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)

vendor/assets/javascripts/twbs/bootstrap/alert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* ========================================================================
2-
* Bootstrap: alert.js v3.3.4
2+
* Bootstrap: alert.js v3.3.5
33
* http://getbootstrap.com/javascript/#alerts
44
* ========================================================================
55
* Copyright 2011-2015 Twitter, Inc.
@@ -18,7 +18,7 @@
1818
$(el).on('click', dismiss, this.close)
1919
}
2020

21-
Alert.VERSION = '3.3.4'
21+
Alert.VERSION = '3.3.5'
2222

2323
Alert.TRANSITION_DURATION = 150
2424

vendor/assets/javascripts/twbs/bootstrap/button.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* ========================================================================
2-
* Bootstrap: button.js v3.3.4
2+
* Bootstrap: button.js v3.3.5
33
* http://getbootstrap.com/javascript/#buttons
44
* ========================================================================
55
* Copyright 2011-2015 Twitter, Inc.
@@ -19,7 +19,7 @@
1919
this.isLoading = false
2020
}
2121

22-
Button.VERSION = '3.3.4'
22+
Button.VERSION = '3.3.5'
2323

2424
Button.DEFAULTS = {
2525
loadingText: 'loading...'
@@ -31,7 +31,7 @@
3131
var val = $el.is('input') ? 'val' : 'html'
3232
var data = $el.data()
3333

34-
state = state + 'Text'
34+
state += 'Text'
3535

3636
if (data.resetText == null) $el.data('resetText', $el[val]())
3737

@@ -56,15 +56,19 @@
5656
if ($parent.length) {
5757
var $input = this.$element.find('input')
5858
if ($input.prop('type') == 'radio') {
59-
if ($input.prop('checked') && this.$element.hasClass('active')) changed = false
60-
else $parent.find('.active').removeClass('active')
59+
if ($input.prop('checked')) changed = false
60+
$parent.find('.active').removeClass('active')
61+
this.$element.addClass('active')
62+
} else if ($input.prop('type') == 'checkbox') {
63+
if (($input.prop('checked')) !== this.$element.hasClass('active')) changed = false
64+
this.$element.toggleClass('active')
6165
}
62-
if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change')
66+
$input.prop('checked', this.$element.hasClass('active'))
67+
if (changed) $input.trigger('change')
6368
} else {
6469
this.$element.attr('aria-pressed', !this.$element.hasClass('active'))
70+
this.$element.toggleClass('active')
6571
}
66-
67-
if (changed) this.$element.toggleClass('active')
6872
}
6973

7074

@@ -107,7 +111,7 @@
107111
var $btn = $(e.target)
108112
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
109113
Plugin.call($btn, 'toggle')
110-
e.preventDefault()
114+
if (!($(e.target).is('input[type="radio"]') || $(e.target).is('input[type="checkbox"]'))) e.preventDefault()
111115
})
112116
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
113117
$(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))

0 commit comments

Comments
 (0)