Skip to content

Commit

Permalink
Update to 2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
IonDen committed Feb 17, 2015
1 parent 79eb2c0 commit 5cb90a7
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 40 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ion.rangeSlider",
"version": "2.0.5",
"version": "2.0.6",
"homepage": "https://github.com/IonDen/ion.rangeSlider",
"authors": [
{
Expand Down
6 changes: 5 additions & 1 deletion history.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Ion.RangeSlider Update History

### Version 2.0.6. February 17, 2015
* Issues done: #197
* Fixed bug with broken From and To

### Version 2.0.5. February 13, 2015
* Issues done: #193, #195, #197, #201
* Issues done: #193, #195, #201

### Version 2.0.4. February 12, 2015
* Issues done: #174, #184
Expand Down
4 changes: 2 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Ion.Range Slider 2.0.5
# Ion.Range Slider 2.0.6

> English description | <a href="readme.ru.md">Описание на русском</a>
Easy and light range slider
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/en.html">Project page and demos</a>
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.5.zip">Download ion.rangeSlider-2.0.5.zip</a>
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.6.zip">Download ion.rangeSlider-2.0.6.zip</a>

***

Expand Down
4 changes: 2 additions & 2 deletions ion-rangeSlider.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ion-rangeSlider",
"version": "2.0.5",
"version": "2.0.6",
"title": "Ion.RangeSlider",
"description": "Cool, comfortable and easily customizable range slider with many options and skin support",
"keywords": [
Expand Down Expand Up @@ -30,7 +30,7 @@
"homepage": "https://github.com/IonDen/ion.rangeSlider",
"docs": "https://github.com/IonDen/ion.rangeSlider/blob/master/readme.md",
"demo": "http://ionden.com/a/plugins/ion.rangeSlider/en.html",
"download": "http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.5.zip",
"download": "http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.6.zip",
"dependencies": {
"jquery": ">=1.8"
}
Expand Down
53 changes: 44 additions & 9 deletions js/ion.rangeSlider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Ion.RangeSlider
// version 2.0.5 Build: 298
// version 2.0.6 Build: 300
// © Denis Ineshin, 2015
// https://github.com/IonDen
//
Expand Down Expand Up @@ -76,6 +76,34 @@
return bound;
};
}
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function(searchElement, fromIndex) {
var k;
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
var O = Object(this);
var len = O.length >>> 0;
if (len === 0) {
return -1;
}
var n = +fromIndex || 0;
if (Math.abs(n) === Infinity) {
n = 0;
}
if (n >= len) {
return -1;
}
k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
while (k < len) {
if (k in O && O[k] === searchElement) {
return k;
}
k++;
}
return -1;
};
}



Expand Down Expand Up @@ -111,7 +139,7 @@
// Core

var IonRangeSlider = function (input, options, plugin_count) {
this.VERSION = "2.0.5";
this.VERSION = "2.0.6";
this.input = input;
this.plugin_count = plugin_count;
this.current_plugin = 0;
Expand Down Expand Up @@ -209,14 +237,21 @@
var val = $inp.prop("value");
if (val) {
val = val.split(";");
}

if (val && options.values && options.values.length) {
data.from = val[0] && options.values.indexOf(val[0]);
data.to = val[1] && options.values.indexOf(val[1]);
} else {
data.from = val[0] && +val[0];
data.to = val[1] && +val[1];
if (val[0] && val[0] == +val[0]) {
val[0] = +val[0];
}
if (val[1] && val[1] == +val[1]) {
val[1] = +val[1];
}

if (options.values && options.values.length) {
data.from = val[0] && options.values.indexOf(val[0]);
data.to = val[1] && options.values.indexOf(val[1]);
} else {
data.from = val[0] && +val[0];
data.to = val[1] && +val[1];
}
}

// get config from options
Expand Down
41 changes: 21 additions & 20 deletions js/ion.rangeSlider.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ion-rangeslider",
"version": "2.0.5",
"version": "2.0.6",
"description": "Cool, comfortable and easily customizable range slider with many options and skin support",
"homepage": "http://ionden.com/a/plugins/ion.rangeSlider/en.html",
"author": {
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Ion.Range Slider 2.0.5
# Ion.Range Slider 2.0.6

> English description | <a href="readme.ru.md">Описание на русском</a>
Easy and light range slider
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/en.html">Project page and demos</a>
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.5.zip">Download ion.rangeSlider-2.0.5.zip</a>
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.6.zip">Download ion.rangeSlider-2.0.6.zip</a>

***

Expand Down
4 changes: 2 additions & 2 deletions readme.ru.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Ion.Range Slider 2.0.5
# Ion.Range Slider 2.0.6

> <a href="readme.md">English description</a> | Описание на русском
Удобный легкий слайдер диапазонов
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/index.html">Страница проекта и демо</a>
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.5.zip">Download ion.rangeSlider-2.0.5.zip</a>
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.6.zip">Download ion.rangeSlider-2.0.6.zip</a>

***

Expand Down

0 comments on commit 5cb90a7

Please sign in to comment.