bootstrap-slider-rails 6.0.6 → 6.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2162970cdd8d6477103f36e78121f58c0dea514
|
4
|
+
data.tar.gz: c44f18329bcdeef6c6d24d3212c2e484ce473528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de6e8e6a3eac4029a988cf0308ecd20a7a39148741699912a349a412ef1fb234cbef29912a38c384cc95433a25fa9a74a0e357b0b805e8c4f08917b3dda3d26e
|
7
|
+
data.tar.gz: 6736e1fcfdf6e6ea434c8b2627c570369312d0cf16397f83d284fd52ec436fa9192679b80a2038ae3dcdb3c228a22482ef404762d8fc171ae582ecd1de523554
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/*! =======================================================
|
2
|
-
VERSION 6.0.
|
2
|
+
VERSION 6.0.8
|
3
3
|
========================================================= */
|
4
4
|
"use strict";
|
5
5
|
|
6
|
-
|
6
|
+
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
|
7
7
|
|
8
8
|
/*! =========================================================
|
9
9
|
* bootstrap-slider.js
|
@@ -294,7 +294,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
294
294
|
/*************************************************
|
295
295
|
CONSTRUCTOR
|
296
296
|
**************************************************/
|
297
|
-
Slider = function
|
297
|
+
Slider = function (element, options) {
|
298
298
|
createNewSlider.call(this, element, options);
|
299
299
|
return this;
|
300
300
|
};
|
@@ -1116,14 +1116,28 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
1116
1116
|
var offset_min = this.tooltip_min.getBoundingClientRect();
|
1117
1117
|
var offset_max = this.tooltip_max.getBoundingClientRect();
|
1118
1118
|
|
1119
|
-
if (
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1119
|
+
if (this.options.tooltip_position === 'bottom') {
|
1120
|
+
if (offset_min.right > offset_max.left) {
|
1121
|
+
this._removeClass(this.tooltip_max, 'bottom');
|
1122
|
+
this._addClass(this.tooltip_max, 'top');
|
1123
|
+
this.tooltip_max.style.top = '';
|
1124
|
+
this.tooltip_max.style.bottom = 22 + 'px';
|
1125
|
+
} else {
|
1126
|
+
this._removeClass(this.tooltip_max, 'top');
|
1127
|
+
this._addClass(this.tooltip_max, 'bottom');
|
1128
|
+
this.tooltip_max.style.top = this.tooltip_min.style.top;
|
1129
|
+
this.tooltip_max.style.bottom = '';
|
1130
|
+
}
|
1123
1131
|
} else {
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1132
|
+
if (offset_min.right > offset_max.left) {
|
1133
|
+
this._removeClass(this.tooltip_max, 'top');
|
1134
|
+
this._addClass(this.tooltip_max, 'bottom');
|
1135
|
+
this.tooltip_max.style.top = 18 + 'px';
|
1136
|
+
} else {
|
1137
|
+
this._removeClass(this.tooltip_max, 'bottom');
|
1138
|
+
this._addClass(this.tooltip_max, 'top');
|
1139
|
+
this.tooltip_max.style.top = this.tooltip_min.style.top;
|
1140
|
+
}
|
1127
1141
|
}
|
1128
1142
|
}
|
1129
1143
|
},
|
@@ -1517,20 +1531,20 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
1517
1531
|
if (this.options.orientation === 'vertical') {
|
1518
1532
|
var tooltipPos = this.options.tooltip_position || 'right';
|
1519
1533
|
var oppositeSide = tooltipPos === 'left' ? 'right' : 'left';
|
1520
|
-
tooltips.forEach(function (tooltip) {
|
1534
|
+
tooltips.forEach((function (tooltip) {
|
1521
1535
|
this._addClass(tooltip, tooltipPos);
|
1522
1536
|
tooltip.style[oppositeSide] = '100%';
|
1523
|
-
}.bind(this));
|
1537
|
+
}).bind(this));
|
1524
1538
|
} else if (this.options.tooltip_position === 'bottom') {
|
1525
|
-
tooltips.forEach(function (tooltip) {
|
1539
|
+
tooltips.forEach((function (tooltip) {
|
1526
1540
|
this._addClass(tooltip, 'bottom');
|
1527
1541
|
tooltip.style.top = 22 + 'px';
|
1528
|
-
}.bind(this));
|
1542
|
+
}).bind(this));
|
1529
1543
|
} else {
|
1530
|
-
tooltips.forEach(function (tooltip) {
|
1544
|
+
tooltips.forEach((function (tooltip) {
|
1531
1545
|
this._addClass(tooltip, 'top');
|
1532
1546
|
tooltip.style.top = -this.tooltip.outerHeight - 14 + 'px';
|
1533
|
-
}.bind(this));
|
1547
|
+
}).bind(this));
|
1534
1548
|
}
|
1535
1549
|
}
|
1536
1550
|
};
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-slider-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedr Browne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|