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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/README.md +1 -1
  4. data/lib/twbs_sass_rails/version.rb +1 -1
  5. data/vendor/assets/javascripts/twbs/bootstrap/affix.js +7 -5
  6. data/vendor/assets/javascripts/twbs/bootstrap/alert.js +6 -5
  7. data/vendor/assets/javascripts/twbs/bootstrap/button.js +4 -4
  8. data/vendor/assets/javascripts/twbs/bootstrap/carousel.js +16 -7
  9. data/vendor/assets/javascripts/twbs/bootstrap/collapse.js +6 -6
  10. data/vendor/assets/javascripts/twbs/bootstrap/dropdown.js +5 -5
  11. data/vendor/assets/javascripts/twbs/bootstrap/modal.js +43 -24
  12. data/vendor/assets/javascripts/twbs/bootstrap/popover.js +6 -6
  13. data/vendor/assets/javascripts/twbs/bootstrap/scrollspy.js +4 -4
  14. data/vendor/assets/javascripts/twbs/bootstrap/tab.js +10 -10
  15. data/vendor/assets/javascripts/twbs/bootstrap/tooltip.js +6 -6
  16. data/vendor/assets/javascripts/twbs/bootstrap/transition.js +5 -5
  17. data/vendor/assets/javascripts/twbs/bootstrap.js +3 -3
  18. data/vendor/assets/stylesheets/fontawesome/_path.scss +7 -7
  19. data/vendor/assets/stylesheets/twbs/_bootstrap.scss +2 -2
  20. data/vendor/assets/stylesheets/twbs/bootstrap/_alerts.scss +3 -3
  21. data/vendor/assets/stylesheets/twbs/bootstrap/_badges.scss +3 -3
  22. data/vendor/assets/stylesheets/twbs/bootstrap/_breadcrumbs.scss +2 -2
  23. data/vendor/assets/stylesheets/twbs/bootstrap/_button-groups.scss +5 -5
  24. data/vendor/assets/stylesheets/twbs/bootstrap/_buttons.scss +4 -4
  25. data/vendor/assets/stylesheets/twbs/bootstrap/_carousel.scss +26 -25
  26. data/vendor/assets/stylesheets/twbs/bootstrap/_close.scss +1 -0
  27. data/vendor/assets/stylesheets/twbs/bootstrap/_code.scss +3 -3
  28. data/vendor/assets/stylesheets/twbs/bootstrap/_component-animations.scss +1 -0
  29. data/vendor/assets/stylesheets/twbs/bootstrap/_dropdowns.scss +20 -23
  30. data/vendor/assets/stylesheets/twbs/bootstrap/_forms.scss +47 -57
  31. data/vendor/assets/stylesheets/twbs/bootstrap/_glyphicons.scss +9 -9
  32. data/vendor/assets/stylesheets/twbs/bootstrap/_grid.scss +10 -0
  33. data/vendor/assets/stylesheets/twbs/bootstrap/_input-groups.scss +2 -2
  34. data/vendor/assets/stylesheets/twbs/bootstrap/_jumbotron.scss +5 -5
  35. data/vendor/assets/stylesheets/twbs/bootstrap/_labels.scss +1 -1
  36. data/vendor/assets/stylesheets/twbs/bootstrap/_list-group.scss +30 -32
  37. data/vendor/assets/stylesheets/twbs/bootstrap/_media.scss +1 -1
  38. data/vendor/assets/stylesheets/twbs/bootstrap/_modals.scss +6 -6
  39. data/vendor/assets/stylesheets/twbs/bootstrap/_navbar.scss +75 -81
  40. data/vendor/assets/stylesheets/twbs/bootstrap/_navs.scss +4 -4
  41. data/vendor/assets/stylesheets/twbs/bootstrap/_normalize.scss +5 -2
  42. data/vendor/assets/stylesheets/twbs/bootstrap/_pager.scss +2 -2
  43. data/vendor/assets/stylesheets/twbs/bootstrap/_pagination.scss +12 -15
  44. data/vendor/assets/stylesheets/twbs/bootstrap/_panels.scss +4 -4
  45. data/vendor/assets/stylesheets/twbs/bootstrap/_popovers.scss +47 -52
  46. data/vendor/assets/stylesheets/twbs/bootstrap/_print.scss +90 -92
  47. data/vendor/assets/stylesheets/twbs/bootstrap/_progress-bars.scss +3 -3
  48. data/vendor/assets/stylesheets/twbs/bootstrap/_responsive-embed.scss +2 -2
  49. data/vendor/assets/stylesheets/twbs/bootstrap/_responsive-utilities.scss +3 -3
  50. data/vendor/assets/stylesheets/twbs/bootstrap/_scaffolding.scss +7 -7
  51. data/vendor/assets/stylesheets/twbs/bootstrap/_tables.scss +23 -23
  52. data/vendor/assets/stylesheets/twbs/bootstrap/_theme.scss +21 -17
  53. data/vendor/assets/stylesheets/twbs/bootstrap/_thumbnails.scss +1 -1
  54. data/vendor/assets/stylesheets/twbs/bootstrap/_tooltip.scss +38 -27
  55. data/vendor/assets/stylesheets/twbs/bootstrap/_type.scss +10 -10
  56. data/vendor/assets/stylesheets/twbs/bootstrap/_variables.scss +6 -6
  57. data/vendor/assets/stylesheets/twbs/bootstrap/_wells.scss +2 -2
  58. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_alerts.scss +2 -1
  59. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_border-radius.scss +4 -4
  60. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_buttons.scss +6 -10
  61. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_center-block.scss +1 -1
  62. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_clearfix.scss +1 -1
  63. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_forms.scss +4 -4
  64. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_gradients.scss +6 -8
  65. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_grid-framework.scss +1 -1
  66. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_grid.scss +7 -7
  67. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_image.scss +5 -10
  68. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_opacity.scss +2 -3
  69. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_reset-text.scss +4 -4
  70. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_resize.scss +1 -1
  71. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_responsive-visibility.scss +0 -4
  72. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/_vendor-prefixes.scss +1 -1
  73. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2793ce8d46ce91941f4b0070e3113e1b3353a023883838ad7822d7c047e3d5c
4
- data.tar.gz: cdfb9bd19bc2f10089f4a17d5a8080e2a0b57a7ba68d29d7e4d9e41355a663b6
3
+ metadata.gz: 7faeaa59cd899dc3b746e810723969fc971fa04209696563b84410a4b8527cc2
4
+ data.tar.gz: 19e9f3f483d0a6448dee0e5019b4bd596a1270bd34030ac4633da04c0ebe30e2
5
5
  SHA512:
6
- metadata.gz: f94a8a2c0c19d83d68101e14faf5170e76f30d47446928dac82dd84df24c2ed48ab2a35a6a1f80f2affc78a7e0a0382ea16cc74d64375cd86c3d0407caa2a37d
7
- data.tar.gz: c75ce16bb27e3bfc349ec7e3118d27b8f38847f8efafed9f0788f9502ee81ba1c3b3b5734b4834398090f0cdcdf4ae9fa93da8cbf26708430ec92629b68b53f3
6
+ metadata.gz: 3116417e6b4acb9a7ddf353fd814150ab9c913f9751ed9680284ddf4dd3bb54d5ca24409e161a5d3e526d1a044d0e20dbda82ead574b17398ca0345bad021261
7
+ data.tar.gz: 22316013eb6089c86517a4d26a53e1bec52367e892c284907c424db83cbae2ed14d03157c03019d68a5958cdd18f745bb157e4850bf3fcdaa65c07262304e36f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.0.0
4
+
5
+ * bootstrap-sass 3.4.0
6
+ * Test against latest Ruby versions
7
+ * Update dependencies
8
+
3
9
  ## 6.0.0
4
10
 
5
11
  * Add Autoprefixer 9 compatibility
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.3.7](https://getbootstrap.com/docs/3.3/) 3, [Font Awesome 4.7.0](http://fontawesome.io) and [Respond.js](https://github.com/scottjehl/Respond) assets into your Rails application.
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,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TwbsSassRails
4
- VERSION = '6.0.0'.freeze
4
+ VERSION = '7.0.0'.freeze
5
5
  end
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: affix.js v3.3.7
3
- * http://getbootstrap.com/javascript/#affix
2
+ * Bootstrap: affix.js v3.4.0
3
+ * https://getbootstrap.com/docs/3.4/javascript/#affix
4
4
  * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
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
- this.$target = $(this.options.target)
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.3.7'
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.7
3
- * http://getbootstrap.com/javascript/#alerts
2
+ * Bootstrap: alert.js v3.4.0
3
+ * https://getbootstrap.com/docs/3.4/javascript/#alerts
4
4
  * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
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.3.7'
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
- var $parent = $(selector === '#' ? [] : selector)
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.7
3
- * http://getbootstrap.com/javascript/#buttons
2
+ * Bootstrap: button.js v3.4.0
3
+ * https://getbootstrap.com/docs/3.4/javascript/#buttons
4
4
  * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
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.3.7'
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.7
3
- * http://getbootstrap.com/javascript/#carousel
2
+ * Bootstrap: carousel.js v3.4.0
3
+ * https://getbootstrap.com/docs/3.4/javascript/#carousel
4
4
  * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
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.3.7'
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[0].offsetWidth // force reflow
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 $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
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.7
3
- * http://getbootstrap.com/javascript/#collapse
2
+ * Bootstrap: collapse.js v3.4.0
3
+ * https://getbootstrap.com/docs/3.4/javascript/#collapse
4
4
  * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
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.3.7'
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.7
3
- * http://getbootstrap.com/javascript/#dropdowns
2
+ * Bootstrap: dropdown.js v3.4.0
3
+ * https://getbootstrap.com/docs/3.4/javascript/#dropdowns
4
4
  * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
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.3.7'
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.7
3
- * http://getbootstrap.com/javascript/#modals
2
+ * Bootstrap: modal.js v3.4.0
3
+ * https://getbootstrap.com/docs/3.4/javascript/#modals
4
4
  * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
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 = 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
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 = '3.3.7'
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 = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
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
- this.$element[0] !== e.target &&
145
- !this.$element.has(e.target).length) {
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: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
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
- if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
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 = $(this)
295
- var data = $this.data('bs.modal')
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 = Plugin
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 = $(this)
324
- var href = $this.attr('href')
325
- var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
326
- var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
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.7
3
- * http://getbootstrap.com/javascript/#popovers
2
+ * Bootstrap: popover.js v3.4.0
3
+ * https://getbootstrap.com/docs/3.4/javascript/#popovers
4
4
  * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
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.3.7'
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
- o.content.call($e[0]) :
71
- o.content)
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.7
3
- * http://getbootstrap.com/javascript/#scrollspy
2
+ * Bootstrap: scrollspy.js v3.4.0
3
+ * https://getbootstrap.com/docs/3.4/javascript/#scrollspy
4
4
  * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
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.3.7'
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.7
3
- * http://getbootstrap.com/javascript/#tabs
2
+ * Bootstrap: tab.js v3.4.0
3
+ * https://getbootstrap.com/docs/3.4/javascript/#tabs
4
4
  * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
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.3.7'
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
- .removeClass('active')
76
+ .removeClass('active')
77
77
  .end()
78
78
  .find('[data-toggle="tab"]')
79
- .attr('aria-expanded', false)
79
+ .attr('aria-expanded', false)
80
80
 
81
81
  element
82
82
  .addClass('active')
83
83
  .find('[data-toggle="tab"]')
84
- .attr('aria-expanded', true)
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
- .addClass('active')
96
+ .addClass('active')
97
97
  .end()
98
98
  .find('[data-toggle="tab"]')
99
- .attr('aria-expanded', true)
99
+ .attr('aria-expanded', true)
100
100
  }
101
101
 
102
102
  callback && callback()