twbs_sass_rails 6.0.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/twbs_sass_rails/version.rb +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/affix.js +7 -5
- data/vendor/assets/javascripts/twbs/bootstrap/alert.js +6 -5
- data/vendor/assets/javascripts/twbs/bootstrap/button.js +4 -4
- data/vendor/assets/javascripts/twbs/bootstrap/carousel.js +16 -7
- data/vendor/assets/javascripts/twbs/bootstrap/collapse.js +6 -6
- data/vendor/assets/javascripts/twbs/bootstrap/dropdown.js +5 -5
- data/vendor/assets/javascripts/twbs/bootstrap/modal.js +43 -24
- data/vendor/assets/javascripts/twbs/bootstrap/popover.js +6 -6
- data/vendor/assets/javascripts/twbs/bootstrap/scrollspy.js +4 -4
- data/vendor/assets/javascripts/twbs/bootstrap/tab.js +10 -10
- data/vendor/assets/javascripts/twbs/bootstrap/tooltip.js +6 -6
- data/vendor/assets/javascripts/twbs/bootstrap/transition.js +5 -5
- data/vendor/assets/javascripts/twbs/bootstrap.js +3 -3
- data/vendor/assets/stylesheets/fontawesome/_path.scss +7 -7
- data/vendor/assets/stylesheets/twbs/_bootstrap.scss +2 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/_alerts.scss +3 -3
- data/vendor/assets/stylesheets/twbs/bootstrap/_badges.scss +3 -3
- data/vendor/assets/stylesheets/twbs/bootstrap/_breadcrumbs.scss +2 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/_button-groups.scss +5 -5
- data/vendor/assets/stylesheets/twbs/bootstrap/_buttons.scss +4 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/_carousel.scss +26 -25
- data/vendor/assets/stylesheets/twbs/bootstrap/_close.scss +1 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_code.scss +3 -3
- data/vendor/assets/stylesheets/twbs/bootstrap/_component-animations.scss +1 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_dropdowns.scss +20 -23
- data/vendor/assets/stylesheets/twbs/bootstrap/_forms.scss +47 -57
- data/vendor/assets/stylesheets/twbs/bootstrap/_glyphicons.scss +9 -9
- data/vendor/assets/stylesheets/twbs/bootstrap/_grid.scss +10 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_input-groups.scss +2 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/_jumbotron.scss +5 -5
- data/vendor/assets/stylesheets/twbs/bootstrap/_labels.scss +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/_list-group.scss +30 -32
- data/vendor/assets/stylesheets/twbs/bootstrap/_media.scss +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/_modals.scss +6 -6
- data/vendor/assets/stylesheets/twbs/bootstrap/_navbar.scss +75 -81
- data/vendor/assets/stylesheets/twbs/bootstrap/_navs.scss +4 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/_normalize.scss +5 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/_pager.scss +2 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/_pagination.scss +12 -15
- data/vendor/assets/stylesheets/twbs/bootstrap/_panels.scss +4 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/_popovers.scss +47 -52
- data/vendor/assets/stylesheets/twbs/bootstrap/_print.scss +90 -92
- data/vendor/assets/stylesheets/twbs/bootstrap/_progress-bars.scss +3 -3
- data/vendor/assets/stylesheets/twbs/bootstrap/_responsive-embed.scss +2 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/_responsive-utilities.scss +3 -3
- data/vendor/assets/stylesheets/twbs/bootstrap/_scaffolding.scss +7 -7
- data/vendor/assets/stylesheets/twbs/bootstrap/_tables.scss +23 -23
- data/vendor/assets/stylesheets/twbs/bootstrap/_theme.scss +21 -17
- data/vendor/assets/stylesheets/twbs/bootstrap/_thumbnails.scss +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/_tooltip.scss +38 -27
- data/vendor/assets/stylesheets/twbs/bootstrap/_type.scss +10 -10
- data/vendor/assets/stylesheets/twbs/bootstrap/_variables.scss +6 -6
- data/vendor/assets/stylesheets/twbs/bootstrap/_wells.scss +2 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_alerts.scss +2 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_border-radius.scss +4 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_buttons.scss +6 -10
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_center-block.scss +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_clearfix.scss +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_forms.scss +4 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_gradients.scss +6 -8
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_grid-framework.scss +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_grid.scss +7 -7
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_image.scss +5 -10
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_opacity.scss +2 -3
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_reset-text.scss +4 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_resize.scss +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_responsive-visibility.scss +0 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_vendor-prefixes.scss +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7faeaa59cd899dc3b746e810723969fc971fa04209696563b84410a4b8527cc2
|
4
|
+
data.tar.gz: 19e9f3f483d0a6448dee0e5019b4bd596a1270bd34030ac4633da04c0ebe30e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3116417e6b4acb9a7ddf353fd814150ab9c913f9751ed9680284ddf4dd3bb54d5ca24409e161a5d3e526d1a044d0e20dbda82ead574b17398ca0345bad021261
|
7
|
+
data.tar.gz: 22316013eb6089c86517a4d26a53e1bec52367e892c284907c424db83cbae2ed14d03157c03019d68a5958cdd18f745bb157e4850bf3fcdaa65c07262304e36f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
[![Code Climate](https://codeclimate.com/github/diowa/twbs_sass_rails/badges/gpa.svg)](https://codeclimate.com/github/diowa/twbs_sass_rails)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/github/diowa/twbs_sass_rails/badge.svg?branch=master)](https://coveralls.io/github/diowa/twbs_sass_rails?branch=master)
|
6
6
|
|
7
|
-
An opinionated gem which brings [Bootstrap for Sass 3.
|
7
|
+
An opinionated gem which brings [Bootstrap for Sass 3.4.0](https://getbootstrap.com/docs/3.4/), [Font Awesome 4.7.0](https://fontawesome.com/v4.7.0/) and [Respond.js](https://github.com/scottjehl/Respond) assets into your Rails application.
|
8
8
|
|
9
9
|
|
10
10
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: affix.js v3.
|
3
|
-
*
|
2
|
+
* Bootstrap: affix.js v3.4.0
|
3
|
+
* https://getbootstrap.com/docs/3.4/javascript/#affix
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright 2011-
|
5
|
+
* Copyright 2011-2018 Twitter, Inc.
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* ======================================================================== */
|
8
8
|
|
@@ -16,7 +16,9 @@
|
|
16
16
|
var Affix = function (element, options) {
|
17
17
|
this.options = $.extend({}, Affix.DEFAULTS, options)
|
18
18
|
|
19
|
-
|
19
|
+
var target = this.options.target === Affix.DEFAULTS.target ? $(this.options.target) : $(document).find(this.options.target)
|
20
|
+
|
21
|
+
this.$target = target
|
20
22
|
.on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
|
21
23
|
.on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))
|
22
24
|
|
@@ -28,7 +30,7 @@
|
|
28
30
|
this.checkPosition()
|
29
31
|
}
|
30
32
|
|
31
|
-
Affix.VERSION = '3.
|
33
|
+
Affix.VERSION = '3.4.0'
|
32
34
|
|
33
35
|
Affix.RESET = 'affix affix-top affix-bottom'
|
34
36
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: alert.js v3.
|
3
|
-
*
|
2
|
+
* Bootstrap: alert.js v3.4.0
|
3
|
+
* https://getbootstrap.com/docs/3.4/javascript/#alerts
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright 2011-
|
5
|
+
* Copyright 2011-2018 Twitter, Inc.
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* ======================================================================== */
|
8
8
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
$(el).on('click', dismiss, this.close)
|
19
19
|
}
|
20
20
|
|
21
|
-
Alert.VERSION = '3.
|
21
|
+
Alert.VERSION = '3.4.0'
|
22
22
|
|
23
23
|
Alert.TRANSITION_DURATION = 150
|
24
24
|
|
@@ -31,7 +31,8 @@
|
|
31
31
|
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
|
32
32
|
}
|
33
33
|
|
34
|
-
|
34
|
+
selector = selector === '#' ? [] : selector
|
35
|
+
var $parent = $(document).find(selector)
|
35
36
|
|
36
37
|
if (e) e.preventDefault()
|
37
38
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: button.js v3.
|
3
|
-
*
|
2
|
+
* Bootstrap: button.js v3.4.0
|
3
|
+
* https://getbootstrap.com/docs/3.4/javascript/#buttons
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright 2011-
|
5
|
+
* Copyright 2011-2018 Twitter, Inc.
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* ======================================================================== */
|
8
8
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
this.isLoading = false
|
20
20
|
}
|
21
21
|
|
22
|
-
Button.VERSION = '3.
|
22
|
+
Button.VERSION = '3.4.0'
|
23
23
|
|
24
24
|
Button.DEFAULTS = {
|
25
25
|
loadingText: 'loading...'
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: carousel.js v3.
|
3
|
-
*
|
2
|
+
* Bootstrap: carousel.js v3.4.0
|
3
|
+
* https://getbootstrap.com/docs/3.4/javascript/#carousel
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright 2011-
|
5
|
+
* Copyright 2011-2018 Twitter, Inc.
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* ======================================================================== */
|
8
8
|
|
@@ -30,7 +30,7 @@
|
|
30
30
|
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
|
31
31
|
}
|
32
32
|
|
33
|
-
Carousel.VERSION = '3.
|
33
|
+
Carousel.VERSION = '3.4.0'
|
34
34
|
|
35
35
|
Carousel.TRANSITION_DURATION = 600
|
36
36
|
|
@@ -144,7 +144,9 @@
|
|
144
144
|
var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid"
|
145
145
|
if ($.support.transition && this.$element.hasClass('slide')) {
|
146
146
|
$next.addClass(type)
|
147
|
-
$next
|
147
|
+
if (typeof $next === 'object' && $next.length) {
|
148
|
+
$next[0].offsetWidth // force reflow
|
149
|
+
}
|
148
150
|
$active.addClass(direction)
|
149
151
|
$next.addClass(direction)
|
150
152
|
$active
|
@@ -206,10 +208,17 @@
|
|
206
208
|
// =================
|
207
209
|
|
208
210
|
var clickHandler = function (e) {
|
209
|
-
var href
|
210
211
|
var $this = $(this)
|
211
|
-
var
|
212
|
+
var href = $this.attr('href')
|
213
|
+
if (href) {
|
214
|
+
href = href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
|
215
|
+
}
|
216
|
+
|
217
|
+
var target = $this.attr('data-target') || href
|
218
|
+
var $target = $(document).find(target)
|
219
|
+
|
212
220
|
if (!$target.hasClass('carousel')) return
|
221
|
+
|
213
222
|
var options = $.extend({}, $target.data(), $this.data())
|
214
223
|
var slideIndex = $this.attr('data-slide-to')
|
215
224
|
if (slideIndex) options.interval = false
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: collapse.js v3.
|
3
|
-
*
|
2
|
+
* Bootstrap: collapse.js v3.4.0
|
3
|
+
* https://getbootstrap.com/docs/3.4/javascript/#collapse
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright 2011-
|
5
|
+
* Copyright 2011-2018 Twitter, Inc.
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* ======================================================================== */
|
8
8
|
|
@@ -30,7 +30,7 @@
|
|
30
30
|
if (this.options.toggle) this.toggle()
|
31
31
|
}
|
32
32
|
|
33
|
-
Collapse.VERSION = '3.
|
33
|
+
Collapse.VERSION = '3.4.0'
|
34
34
|
|
35
35
|
Collapse.TRANSITION_DURATION = 350
|
36
36
|
|
@@ -137,7 +137,7 @@
|
|
137
137
|
}
|
138
138
|
|
139
139
|
Collapse.prototype.getParent = function () {
|
140
|
-
return $(this.options.parent)
|
140
|
+
return $(document).find(this.options.parent)
|
141
141
|
.find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
|
142
142
|
.each($.proxy(function (i, element) {
|
143
143
|
var $element = $(element)
|
@@ -160,7 +160,7 @@
|
|
160
160
|
var target = $trigger.attr('data-target')
|
161
161
|
|| (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
|
162
162
|
|
163
|
-
return $(target)
|
163
|
+
return $(document).find(target)
|
164
164
|
}
|
165
165
|
|
166
166
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: dropdown.js v3.
|
3
|
-
*
|
2
|
+
* Bootstrap: dropdown.js v3.4.0
|
3
|
+
* https://getbootstrap.com/docs/3.4/javascript/#dropdowns
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright 2011-
|
5
|
+
* Copyright 2011-2018 Twitter, Inc.
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* ======================================================================== */
|
8
8
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
$(element).on('click.bs.dropdown', this.toggle)
|
20
20
|
}
|
21
21
|
|
22
|
-
Dropdown.VERSION = '3.
|
22
|
+
Dropdown.VERSION = '3.4.0'
|
23
23
|
|
24
24
|
function getParent($this) {
|
25
25
|
var selector = $this.attr('data-target')
|
@@ -29,7 +29,7 @@
|
|
29
29
|
selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
|
30
30
|
}
|
31
31
|
|
32
|
-
var $parent = selector && $(selector)
|
32
|
+
var $parent = selector && $(document).find(selector)
|
33
33
|
|
34
34
|
return $parent && $parent.length ? $parent : $this.parent()
|
35
35
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: modal.js v3.
|
3
|
-
*
|
2
|
+
* Bootstrap: modal.js v3.4.0
|
3
|
+
* https://getbootstrap.com/docs/3.4/javascript/#modals
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright 2011-
|
5
|
+
* Copyright 2011-2018 Twitter, Inc.
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* ======================================================================== */
|
8
8
|
|
@@ -14,15 +14,16 @@
|
|
14
14
|
// ======================
|
15
15
|
|
16
16
|
var Modal = function (element, options) {
|
17
|
-
this.options
|
18
|
-
this.$body
|
19
|
-
this.$element
|
20
|
-
this.$dialog
|
21
|
-
this.$backdrop
|
22
|
-
this.isShown
|
23
|
-
this.originalBodyPad
|
24
|
-
this.scrollbarWidth
|
17
|
+
this.options = options
|
18
|
+
this.$body = $(document.body)
|
19
|
+
this.$element = $(element)
|
20
|
+
this.$dialog = this.$element.find('.modal-dialog')
|
21
|
+
this.$backdrop = null
|
22
|
+
this.isShown = null
|
23
|
+
this.originalBodyPad = null
|
24
|
+
this.scrollbarWidth = 0
|
25
25
|
this.ignoreBackdropClick = false
|
26
|
+
this.fixedContent = '.navbar-fixed-top, .navbar-fixed-bottom'
|
26
27
|
|
27
28
|
if (this.options.remote) {
|
28
29
|
this.$element
|
@@ -33,7 +34,7 @@
|
|
33
34
|
}
|
34
35
|
}
|
35
36
|
|
36
|
-
Modal.VERSION
|
37
|
+
Modal.VERSION = '3.4.0'
|
37
38
|
|
38
39
|
Modal.TRANSITION_DURATION = 300
|
39
40
|
Modal.BACKDROP_TRANSITION_DURATION = 150
|
@@ -50,7 +51,7 @@
|
|
50
51
|
|
51
52
|
Modal.prototype.show = function (_relatedTarget) {
|
52
53
|
var that = this
|
53
|
-
var e
|
54
|
+
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
|
54
55
|
|
55
56
|
this.$element.trigger(e)
|
56
57
|
|
@@ -141,8 +142,8 @@
|
|
141
142
|
.off('focusin.bs.modal') // guard against infinite focus loop
|
142
143
|
.on('focusin.bs.modal', $.proxy(function (e) {
|
143
144
|
if (document !== e.target &&
|
144
|
-
|
145
|
-
|
145
|
+
this.$element[0] !== e.target &&
|
146
|
+
!this.$element.has(e.target).length) {
|
146
147
|
this.$element.trigger('focus')
|
147
148
|
}
|
148
149
|
}, this))
|
@@ -244,7 +245,7 @@
|
|
244
245
|
var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
|
245
246
|
|
246
247
|
this.$element.css({
|
247
|
-
paddingLeft:
|
248
|
+
paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
|
248
249
|
paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
|
249
250
|
})
|
250
251
|
}
|
@@ -269,11 +270,26 @@
|
|
269
270
|
Modal.prototype.setScrollbar = function () {
|
270
271
|
var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
|
271
272
|
this.originalBodyPad = document.body.style.paddingRight || ''
|
272
|
-
|
273
|
+
var scrollbarWidth = this.scrollbarWidth
|
274
|
+
if (this.bodyIsOverflowing) {
|
275
|
+
this.$body.css('padding-right', bodyPad + scrollbarWidth)
|
276
|
+
$(this.fixedContent).each(function (index, element) {
|
277
|
+
var actualPadding = element.style.paddingRight
|
278
|
+
var calculatedPadding = $(element).css('padding-right')
|
279
|
+
$(element)
|
280
|
+
.data('padding-right', actualPadding)
|
281
|
+
.css('padding-right', parseFloat(calculatedPadding) + scrollbarWidth + 'px')
|
282
|
+
})
|
283
|
+
}
|
273
284
|
}
|
274
285
|
|
275
286
|
Modal.prototype.resetScrollbar = function () {
|
276
287
|
this.$body.css('padding-right', this.originalBodyPad)
|
288
|
+
$(this.fixedContent).each(function (index, element) {
|
289
|
+
var padding = $(element).data('padding-right')
|
290
|
+
$(element).removeData('padding-right')
|
291
|
+
element.style.paddingRight = padding ? padding : ''
|
292
|
+
})
|
277
293
|
}
|
278
294
|
|
279
295
|
Modal.prototype.measureScrollbar = function () { // thx walsh
|
@@ -291,8 +307,8 @@
|
|
291
307
|
|
292
308
|
function Plugin(option, _relatedTarget) {
|
293
309
|
return this.each(function () {
|
294
|
-
var $this
|
295
|
-
var data
|
310
|
+
var $this = $(this)
|
311
|
+
var data = $this.data('bs.modal')
|
296
312
|
var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
297
313
|
|
298
314
|
if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
|
@@ -303,7 +319,7 @@
|
|
303
319
|
|
304
320
|
var old = $.fn.modal
|
305
321
|
|
306
|
-
$.fn.modal
|
322
|
+
$.fn.modal = Plugin
|
307
323
|
$.fn.modal.Constructor = Modal
|
308
324
|
|
309
325
|
|
@@ -320,10 +336,13 @@
|
|
320
336
|
// ==============
|
321
337
|
|
322
338
|
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
|
323
|
-
var $this
|
324
|
-
var href
|
325
|
-
var
|
326
|
-
|
339
|
+
var $this = $(this)
|
340
|
+
var href = $this.attr('href')
|
341
|
+
var target = $this.attr('data-target') ||
|
342
|
+
(href && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
|
343
|
+
|
344
|
+
var $target = $(document).find(target)
|
345
|
+
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
|
327
346
|
|
328
347
|
if ($this.is('a')) e.preventDefault()
|
329
348
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: popover.js v3.
|
3
|
-
*
|
2
|
+
* Bootstrap: popover.js v3.4.0
|
3
|
+
* https://getbootstrap.com/docs/3.4/javascript/#popovers
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright 2011-
|
5
|
+
* Copyright 2011-2018 Twitter, Inc.
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* ======================================================================== */
|
8
8
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
|
20
20
|
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
|
21
21
|
|
22
|
-
Popover.VERSION = '3.
|
22
|
+
Popover.VERSION = '3.4.0'
|
23
23
|
|
24
24
|
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
|
25
25
|
placement: 'right',
|
@@ -67,8 +67,8 @@
|
|
67
67
|
|
68
68
|
return $e.attr('data-content')
|
69
69
|
|| (typeof o.content == 'function' ?
|
70
|
-
|
71
|
-
|
70
|
+
o.content.call($e[0]) :
|
71
|
+
o.content)
|
72
72
|
}
|
73
73
|
|
74
74
|
Popover.prototype.arrow = function () {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: scrollspy.js v3.
|
3
|
-
*
|
2
|
+
* Bootstrap: scrollspy.js v3.4.0
|
3
|
+
* https://getbootstrap.com/docs/3.4/javascript/#scrollspy
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright 2011-
|
5
|
+
* Copyright 2011-2018 Twitter, Inc.
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* ======================================================================== */
|
8
8
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
this.process()
|
29
29
|
}
|
30
30
|
|
31
|
-
ScrollSpy.VERSION = '3.
|
31
|
+
ScrollSpy.VERSION = '3.4.0'
|
32
32
|
|
33
33
|
ScrollSpy.DEFAULTS = {
|
34
34
|
offset: 10
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: tab.js v3.
|
3
|
-
*
|
2
|
+
* Bootstrap: tab.js v3.4.0
|
3
|
+
* https://getbootstrap.com/docs/3.4/javascript/#tabs
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright 2011-
|
5
|
+
* Copyright 2011-2018 Twitter, Inc.
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* ======================================================================== */
|
8
8
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
// jscs:enable requireDollarBeforejQueryAssignment
|
20
20
|
}
|
21
21
|
|
22
|
-
Tab.VERSION = '3.
|
22
|
+
Tab.VERSION = '3.4.0'
|
23
23
|
|
24
24
|
Tab.TRANSITION_DURATION = 150
|
25
25
|
|
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return
|
50
50
|
|
51
|
-
var $target = $(selector)
|
51
|
+
var $target = $(document).find(selector)
|
52
52
|
|
53
53
|
this.activate($this.closest('li'), $ul)
|
54
54
|
this.activate($target, $target.parent(), function () {
|
@@ -73,15 +73,15 @@
|
|
73
73
|
$active
|
74
74
|
.removeClass('active')
|
75
75
|
.find('> .dropdown-menu > .active')
|
76
|
-
|
76
|
+
.removeClass('active')
|
77
77
|
.end()
|
78
78
|
.find('[data-toggle="tab"]')
|
79
|
-
|
79
|
+
.attr('aria-expanded', false)
|
80
80
|
|
81
81
|
element
|
82
82
|
.addClass('active')
|
83
83
|
.find('[data-toggle="tab"]')
|
84
|
-
|
84
|
+
.attr('aria-expanded', true)
|
85
85
|
|
86
86
|
if (transition) {
|
87
87
|
element[0].offsetWidth // reflow for transition
|
@@ -93,10 +93,10 @@
|
|
93
93
|
if (element.parent('.dropdown-menu').length) {
|
94
94
|
element
|
95
95
|
.closest('li.dropdown')
|
96
|
-
|
96
|
+
.addClass('active')
|
97
97
|
.end()
|
98
98
|
.find('[data-toggle="tab"]')
|
99
|
-
|
99
|
+
.attr('aria-expanded', true)
|
100
100
|
}
|
101
101
|
|
102
102
|
callback && callback()
|