Skip to content

Commit 563a9ba

Browse files
committed
rake convert
1 parent 63f0a72 commit 563a9ba

23 files changed

+83
-76
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//= require ./bootstrap/affix
1+
//= require ./bootstrap/transition
22
//= require ./bootstrap/alert
33
//= require ./bootstrap/button
44
//= require ./bootstrap/carousel
55
//= require ./bootstrap/collapse
66
//= require ./bootstrap/dropdown
77
//= require ./bootstrap/modal
8-
//= require ./bootstrap/scrollspy
98
//= require ./bootstrap/tab
10-
//= require ./bootstrap/transition
9+
//= require ./bootstrap/affix
10+
//= require ./bootstrap/scrollspy
1111
//= require ./bootstrap/tooltip
1212
//= require ./bootstrap/popover

assets/javascripts/bootstrap.js

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Bootstrap v3.3.6 (http://getbootstrap.com)
2+
* Bootstrap v3.3.7 (http://getbootstrap.com)
33
* Copyright 2011-2016 Twitter, Inc.
44
* Licensed under the MIT license
55
*/
@@ -11,13 +11,13 @@ if (typeof jQuery === 'undefined') {
1111
+function ($) {
1212
'use strict';
1313
var version = $.fn.jquery.split(' ')[0].split('.')
14-
if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 2)) {
15-
throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3')
14+
if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
15+
throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')
1616
}
1717
}(jQuery);
1818

1919
/* ========================================================================
20-
* Bootstrap: transition.js v3.3.6
20+
* Bootstrap: transition.js v3.3.7
2121
* http://getbootstrap.com/javascript/#transitions
2222
* ========================================================================
2323
* Copyright 2011-2016 Twitter, Inc.
@@ -77,7 +77,7 @@ if (typeof jQuery === 'undefined') {
7777
}(jQuery);
7878

7979
/* ========================================================================
80-
* Bootstrap: alert.js v3.3.6
80+
* Bootstrap: alert.js v3.3.7
8181
* http://getbootstrap.com/javascript/#alerts
8282
* ========================================================================
8383
* Copyright 2011-2016 Twitter, Inc.
@@ -96,7 +96,7 @@ if (typeof jQuery === 'undefined') {
9696
$(el).on('click', dismiss, this.close)
9797
}
9898

99-
Alert.VERSION = '3.3.6'
99+
Alert.VERSION = '3.3.7'
100100

101101
Alert.TRANSITION_DURATION = 150
102102

@@ -109,7 +109,7 @@ if (typeof jQuery === 'undefined') {
109109
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
110110
}
111111

112-
var $parent = $(selector)
112+
var $parent = $(selector === '#' ? [] : selector)
113113

114114
if (e) e.preventDefault()
115115

@@ -172,7 +172,7 @@ if (typeof jQuery === 'undefined') {
172172
}(jQuery);
173173

174174
/* ========================================================================
175-
* Bootstrap: button.js v3.3.6
175+
* Bootstrap: button.js v3.3.7
176176
* http://getbootstrap.com/javascript/#buttons
177177
* ========================================================================
178178
* Copyright 2011-2016 Twitter, Inc.
@@ -192,7 +192,7 @@ if (typeof jQuery === 'undefined') {
192192
this.isLoading = false
193193
}
194194

195-
Button.VERSION = '3.3.6'
195+
Button.VERSION = '3.3.7'
196196

197197
Button.DEFAULTS = {
198198
loadingText: 'loading...'
@@ -214,10 +214,10 @@ if (typeof jQuery === 'undefined') {
214214

215215
if (state == 'loadingText') {
216216
this.isLoading = true
217-
$el.addClass(d).attr(d, d)
217+
$el.addClass(d).attr(d, d).prop(d, true)
218218
} else if (this.isLoading) {
219219
this.isLoading = false
220-
$el.removeClass(d).removeAttr(d)
220+
$el.removeClass(d).removeAttr(d).prop(d, false)
221221
}
222222
}, this), 0)
223223
}
@@ -298,7 +298,7 @@ if (typeof jQuery === 'undefined') {
298298
}(jQuery);
299299

300300
/* ========================================================================
301-
* Bootstrap: carousel.js v3.3.6
301+
* Bootstrap: carousel.js v3.3.7
302302
* http://getbootstrap.com/javascript/#carousel
303303
* ========================================================================
304304
* Copyright 2011-2016 Twitter, Inc.
@@ -329,7 +329,7 @@ if (typeof jQuery === 'undefined') {
329329
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
330330
}
331331

332-
Carousel.VERSION = '3.3.6'
332+
Carousel.VERSION = '3.3.7'
333333

334334
Carousel.TRANSITION_DURATION = 600
335335

@@ -536,7 +536,7 @@ if (typeof jQuery === 'undefined') {
536536
}(jQuery);
537537

538538
/* ========================================================================
539-
* Bootstrap: collapse.js v3.3.6
539+
* Bootstrap: collapse.js v3.3.7
540540
* http://getbootstrap.com/javascript/#collapse
541541
* ========================================================================
542542
* Copyright 2011-2016 Twitter, Inc.
@@ -567,7 +567,7 @@ if (typeof jQuery === 'undefined') {
567567
if (this.options.toggle) this.toggle()
568568
}
569569

570-
Collapse.VERSION = '3.3.6'
570+
Collapse.VERSION = '3.3.7'
571571

572572
Collapse.TRANSITION_DURATION = 350
573573

@@ -749,7 +749,7 @@ if (typeof jQuery === 'undefined') {
749749
}(jQuery);
750750

751751
/* ========================================================================
752-
* Bootstrap: dropdown.js v3.3.6
752+
* Bootstrap: dropdown.js v3.3.7
753753
* http://getbootstrap.com/javascript/#dropdowns
754754
* ========================================================================
755755
* Copyright 2011-2016 Twitter, Inc.
@@ -769,7 +769,7 @@ if (typeof jQuery === 'undefined') {
769769
$(element).on('click.bs.dropdown', this.toggle)
770770
}
771771

772-
Dropdown.VERSION = '3.3.6'
772+
Dropdown.VERSION = '3.3.7'
773773

774774
function getParent($this) {
775775
var selector = $this.attr('data-target')
@@ -915,7 +915,7 @@ if (typeof jQuery === 'undefined') {
915915
}(jQuery);
916916

917917
/* ========================================================================
918-
* Bootstrap: modal.js v3.3.6
918+
* Bootstrap: modal.js v3.3.7
919919
* http://getbootstrap.com/javascript/#modals
920920
* ========================================================================
921921
* Copyright 2011-2016 Twitter, Inc.
@@ -949,7 +949,7 @@ if (typeof jQuery === 'undefined') {
949949
}
950950
}
951951

952-
Modal.VERSION = '3.3.6'
952+
Modal.VERSION = '3.3.7'
953953

954954
Modal.TRANSITION_DURATION = 300
955955
Modal.BACKDROP_TRANSITION_DURATION = 150
@@ -1255,7 +1255,7 @@ if (typeof jQuery === 'undefined') {
12551255
}(jQuery);
12561256

12571257
/* ========================================================================
1258-
* Bootstrap: tooltip.js v3.3.6
1258+
* Bootstrap: tooltip.js v3.3.7
12591259
* http://getbootstrap.com/javascript/#tooltip
12601260
* Inspired by the original jQuery.tipsy by Jason Frame
12611261
* ========================================================================
@@ -1282,7 +1282,7 @@ if (typeof jQuery === 'undefined') {
12821282
this.init('tooltip', element, options)
12831283
}
12841284

1285-
Tooltip.VERSION = '3.3.6'
1285+
Tooltip.VERSION = '3.3.7'
12861286

12871287
Tooltip.TRANSITION_DURATION = 150
12881288

@@ -1573,9 +1573,11 @@ if (typeof jQuery === 'undefined') {
15731573

15741574
function complete() {
15751575
if (that.hoverState != 'in') $tip.detach()
1576-
that.$element
1577-
.removeAttr('aria-describedby')
1578-
.trigger('hidden.bs.' + that.type)
1576+
if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary.
1577+
that.$element
1578+
.removeAttr('aria-describedby')
1579+
.trigger('hidden.bs.' + that.type)
1580+
}
15791581
callback && callback()
15801582
}
15811583

@@ -1618,7 +1620,10 @@ if (typeof jQuery === 'undefined') {
16181620
// width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
16191621
elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top })
16201622
}
1621-
var elOffset = isBody ? { top: 0, left: 0 } : $element.offset()
1623+
var isSvg = window.SVGElement && el instanceof window.SVGElement
1624+
// Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3.
1625+
// See https://github.com/twbs/bootstrap/issues/20280
1626+
var elOffset = isBody ? { top: 0, left: 0 } : (isSvg ? null : $element.offset())
16221627
var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }
16231628
var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null
16241629

@@ -1734,6 +1739,7 @@ if (typeof jQuery === 'undefined') {
17341739
that.$tip = null
17351740
that.$arrow = null
17361741
that.$viewport = null
1742+
that.$element = null
17371743
})
17381744
}
17391745

@@ -1770,7 +1776,7 @@ if (typeof jQuery === 'undefined') {
17701776
}(jQuery);
17711777

17721778
/* ========================================================================
1773-
* Bootstrap: popover.js v3.3.6
1779+
* Bootstrap: popover.js v3.3.7
17741780
* http://getbootstrap.com/javascript/#popovers
17751781
* ========================================================================
17761782
* Copyright 2011-2016 Twitter, Inc.
@@ -1790,7 +1796,7 @@ if (typeof jQuery === 'undefined') {
17901796

17911797
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
17921798

1793-
Popover.VERSION = '3.3.6'
1799+
Popover.VERSION = '3.3.7'
17941800

17951801
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
17961802
placement: 'right',
@@ -1879,7 +1885,7 @@ if (typeof jQuery === 'undefined') {
18791885
}(jQuery);
18801886

18811887
/* ========================================================================
1882-
* Bootstrap: scrollspy.js v3.3.6
1888+
* Bootstrap: scrollspy.js v3.3.7
18831889
* http://getbootstrap.com/javascript/#scrollspy
18841890
* ========================================================================
18851891
* Copyright 2011-2016 Twitter, Inc.
@@ -1908,7 +1914,7 @@ if (typeof jQuery === 'undefined') {
19081914
this.process()
19091915
}
19101916

1911-
ScrollSpy.VERSION = '3.3.6'
1917+
ScrollSpy.VERSION = '3.3.7'
19121918

19131919
ScrollSpy.DEFAULTS = {
19141920
offset: 10
@@ -2052,7 +2058,7 @@ if (typeof jQuery === 'undefined') {
20522058
}(jQuery);
20532059

20542060
/* ========================================================================
2055-
* Bootstrap: tab.js v3.3.6
2061+
* Bootstrap: tab.js v3.3.7
20562062
* http://getbootstrap.com/javascript/#tabs
20572063
* ========================================================================
20582064
* Copyright 2011-2016 Twitter, Inc.
@@ -2072,7 +2078,7 @@ if (typeof jQuery === 'undefined') {
20722078
// jscs:enable requireDollarBeforejQueryAssignment
20732079
}
20742080

2075-
Tab.VERSION = '3.3.6'
2081+
Tab.VERSION = '3.3.7'
20762082

20772083
Tab.TRANSITION_DURATION = 150
20782084

@@ -2208,7 +2214,7 @@ if (typeof jQuery === 'undefined') {
22082214
}(jQuery);
22092215

22102216
/* ========================================================================
2211-
* Bootstrap: affix.js v3.3.6
2217+
* Bootstrap: affix.js v3.3.7
22122218
* http://getbootstrap.com/javascript/#affix
22132219
* ========================================================================
22142220
* Copyright 2011-2016 Twitter, Inc.
@@ -2237,7 +2243,7 @@ if (typeof jQuery === 'undefined') {
22372243
this.checkPosition()
22382244
}
22392245

2240-
Affix.VERSION = '3.3.6'
2246+
Affix.VERSION = '3.3.7'
22412247

22422248
Affix.RESET = 'affix affix-top affix-bottom'
22432249

assets/javascripts/bootstrap.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/bootstrap/affix.js

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

31-
Affix.VERSION = '3.3.6'
31+
Affix.VERSION = '3.3.7'
3232

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

assets/javascripts/bootstrap/alert.js

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

21-
Alert.VERSION = '3.3.6'
21+
Alert.VERSION = '3.3.7'
2222

2323
Alert.TRANSITION_DURATION = 150
2424

@@ -31,7 +31,7 @@
3131
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
3232
}
3333

34-
var $parent = $(selector)
34+
var $parent = $(selector === '#' ? [] : selector)
3535

3636
if (e) e.preventDefault()
3737

assets/javascripts/bootstrap/button.js

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

22-
Button.VERSION = '3.3.6'
22+
Button.VERSION = '3.3.7'
2323

2424
Button.DEFAULTS = {
2525
loadingText: 'loading...'
@@ -41,10 +41,10 @@
4141

4242
if (state == 'loadingText') {
4343
this.isLoading = true
44-
$el.addClass(d).attr(d, d)
44+
$el.addClass(d).attr(d, d).prop(d, true)
4545
} else if (this.isLoading) {
4646
this.isLoading = false
47-
$el.removeClass(d).removeAttr(d)
47+
$el.removeClass(d).removeAttr(d).prop(d, false)
4848
}
4949
}, this), 0)
5050
}

assets/javascripts/bootstrap/carousel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* ========================================================================
2-
* Bootstrap: carousel.js v3.3.6
2+
* Bootstrap: carousel.js v3.3.7
33
* http://getbootstrap.com/javascript/#carousel
44
* ========================================================================
55
* Copyright 2011-2016 Twitter, Inc.
@@ -30,7 +30,7 @@
3030
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
3131
}
3232

33-
Carousel.VERSION = '3.3.6'
33+
Carousel.VERSION = '3.3.7'
3434

3535
Carousel.TRANSITION_DURATION = 600
3636

assets/javascripts/bootstrap/collapse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* ========================================================================
2-
* Bootstrap: collapse.js v3.3.6
2+
* Bootstrap: collapse.js v3.3.7
33
* http://getbootstrap.com/javascript/#collapse
44
* ========================================================================
55
* Copyright 2011-2016 Twitter, Inc.
@@ -30,7 +30,7 @@
3030
if (this.options.toggle) this.toggle()
3131
}
3232

33-
Collapse.VERSION = '3.3.6'
33+
Collapse.VERSION = '3.3.7'
3434

3535
Collapse.TRANSITION_DURATION = 350
3636

0 commit comments

Comments
 (0)