Skip to content

Commit 00fe001

Browse files
committed
Release v11.0.0
1 parent 29ef87f commit 00fe001

7 files changed

+206
-114
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "seiyria-bootstrap-slider",
3-
"version": "10.6.2",
3+
"version": "11.0.0",
44
"homepage": "https://github.com/seiyria/bootstrap-slider",
55
"authors": [
66
"Kyle Kemp <[email protected]>",

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "seiyria/bootstrap-slider",
33
"type": "library",
4-
"version": "10.6.2",
4+
"version": "11.0.0",
55
"description": "A less buggy fork of the original bootstrap slider found on http://www.eyecon.ro/ by Stefan Petre. It was forked so we could update the slider since the original wasn't under version control.",
66
"keywords": ["slider", "css", "bootstrap", "javascript"],
77
"homepage": "https://github.com/seiyria/bootstrap-slider",

dist/bootstrap-slider.js

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*! =======================================================
2-
VERSION 10.6.2
2+
VERSION 11.0.0
33
========================================================= */
44
"use strict";
55

@@ -405,7 +405,7 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
405405

406406
/*
407407
Validate `tooltip_position` against 'orientation`
408-
- if `tooltip_position` is incompatible with orientation, swith it to a default compatible with specified `orientation`
408+
- if `tooltip_position` is incompatible with orientation, switch it to a default compatible with specified `orientation`
409409
-- default for "vertical" -> "right", "left" if rtl
410410
-- default for "horizontal" -> "top"
411411
*/
@@ -550,7 +550,7 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
550550

551551
var createAndAppendTooltipSubElements = function createAndAppendTooltipSubElements(tooltipElem) {
552552
var arrow = document.createElement("div");
553-
arrow.className = "tooltip-arrow";
553+
arrow.className = "arrow";
554554

555555
var inner = document.createElement("div");
556556
inner.className = "tooltip-inner";
@@ -652,13 +652,13 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
652652

653653
// Undo inline styles and classes on tooltips
654654
[this.tooltip, this.tooltip_min, this.tooltip_max].forEach(function (tooltip) {
655-
this._removeProperty(tooltip, 'left');
656-
this._removeProperty(tooltip, 'right');
657-
this._removeProperty(tooltip, 'top');
655+
this._removeProperty(tooltip, 'bs-tooltip-left');
656+
this._removeProperty(tooltip, 'bs-tooltip-right');
657+
this._removeProperty(tooltip, 'bs-tooltip-top');
658658

659-
this._removeClass(tooltip, 'right');
660-
this._removeClass(tooltip, 'left');
661-
this._removeClass(tooltip, 'top');
659+
this._removeClass(tooltip, 'bs-tooltip-right');
660+
this._removeClass(tooltip, 'bs-tooltip-left');
661+
this._removeClass(tooltip, 'bs-tooltip-top');
662662
}, this);
663663
}
664664

@@ -1178,21 +1178,21 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
11781178
},
11791179
_showTooltip: function _showTooltip() {
11801180
if (this.options.tooltip_split === false) {
1181-
this._addClass(this.tooltip, 'in');
1181+
this._addClass(this.tooltip, 'show');
11821182
this.tooltip_min.style.display = 'none';
11831183
this.tooltip_max.style.display = 'none';
11841184
} else {
1185-
this._addClass(this.tooltip_min, 'in');
1186-
this._addClass(this.tooltip_max, 'in');
1185+
this._addClass(this.tooltip_min, 'show');
1186+
this._addClass(this.tooltip_max, 'show');
11871187
this.tooltip.style.display = 'none';
11881188
}
11891189
this._state.over = true;
11901190
},
11911191
_hideTooltip: function _hideTooltip() {
11921192
if (this._state.inDrag === false && this._alwaysShowTooltip !== true) {
1193-
this._removeClass(this.tooltip, 'in');
1194-
this._removeClass(this.tooltip_min, 'in');
1195-
this._removeClass(this.tooltip_max, 'in');
1193+
this._removeClass(this.tooltip, 'show');
1194+
this._removeClass(this.tooltip_min, 'show');
1195+
this._removeClass(this.tooltip_max, 'show');
11961196
}
11971197
this._state.over = false;
11981198
},
@@ -1473,24 +1473,24 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
14731473

14741474
if (this.options.tooltip_position === 'bottom') {
14751475
if (offset_min.right > offset_max.left) {
1476-
this._removeClass(this.tooltip_max, 'bottom');
1477-
this._addClass(this.tooltip_max, 'top');
1476+
this._removeClass(this.tooltip_max, 'bs-tooltip-bottom');
1477+
this._addClass(this.tooltip_max, 'bs-tooltip-top');
14781478
this.tooltip_max.style.top = '';
14791479
this.tooltip_max.style.bottom = 22 + 'px';
14801480
} else {
1481-
this._removeClass(this.tooltip_max, 'top');
1482-
this._addClass(this.tooltip_max, 'bottom');
1481+
this._removeClass(this.tooltip_max, 'bs-tooltip-top');
1482+
this._addClass(this.tooltip_max, 'bs-tooltip-bottom');
14831483
this.tooltip_max.style.top = this.tooltip_min.style.top;
14841484
this.tooltip_max.style.bottom = '';
14851485
}
14861486
} else {
14871487
if (offset_min.right > offset_max.left) {
1488-
this._removeClass(this.tooltip_max, 'top');
1489-
this._addClass(this.tooltip_max, 'bottom');
1488+
this._removeClass(this.tooltip_max, 'bs-tooltip-top');
1489+
this._addClass(this.tooltip_max, 'bs-tooltip-bottom');
14901490
this.tooltip_max.style.top = 18 + 'px';
14911491
} else {
1492-
this._removeClass(this.tooltip_max, 'bottom');
1493-
this._addClass(this.tooltip_max, 'top');
1492+
this._removeClass(this.tooltip_max, 'bs-tooltip-bottom');
1493+
this._addClass(this.tooltip_max, 'bs-tooltip-top');
14941494
this.tooltip_max.style.top = this.tooltip_min.style.top;
14951495
}
14961496
}
@@ -1997,17 +1997,17 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
19971997
}
19981998
var oppositeSide = tooltipPos === 'left' ? 'right' : 'left';
19991999
tooltips.forEach(function (tooltip) {
2000-
this._addClass(tooltip, tooltipPos);
2000+
this._addClass(tooltip, 'bs-tooltip-' + tooltipPos);
20012001
tooltip.style[oppositeSide] = '100%';
20022002
}.bind(this));
20032003
} else if (this.options.tooltip_position === 'bottom') {
20042004
tooltips.forEach(function (tooltip) {
2005-
this._addClass(tooltip, 'bottom');
2005+
this._addClass(tooltip, 'bs-tooltip-bottom');
20062006
tooltip.style.top = 22 + 'px';
20072007
}.bind(this));
20082008
} else {
20092009
tooltips.forEach(function (tooltip) {
2010-
this._addClass(tooltip, 'top');
2010+
this._addClass(tooltip, 'bs-tooltip-top');
20112011
tooltip.style.top = -this.tooltip.outerHeight - 14 + 'px';
20122012
}.bind(this));
20132013
}

dist/bootstrap-slider.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)