Skip to content

Commit

Permalink
Release v1.11.1 ⚡🦂⚡
Browse files Browse the repository at this point in the history
  • Loading branch information
simeydotme committed Nov 29, 2015
1 parent d9088f5 commit 8d27431
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 17 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "jQuery-ui-Slider-Pips",
"version": "1.11.0",
"version": "1.11.1",
"description": "A plugin to add little \"pips\" to the jQuery UI Slider widget",
"main": [
"dist/jquery-ui-slider-pips.css",
"dist/jquery-ui-slider-pips.min.js"
"dist/jquery-ui-slider-pips.js"
],
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery-ui-slider-pips.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jQuery-ui-Slider-Pips - v1.11.0 - 2015-11-30
/*! jQuery-ui-Slider-Pips - v1.11.1 - 2015-11-30
* Copyright (c) 2015 Simon Goellner <simey.me@gmail.com>; Licensed MIT */

/* HORIZONTAL */
Expand Down
13 changes: 7 additions & 6 deletions dist/jquery-ui-slider-pips.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jQuery-ui-Slider-Pips - v1.11.0 - 2015-11-30
/*! jQuery-ui-Slider-Pips - v1.11.1 - 2015-11-30
* Copyright (c) 2015 Simon Goellner <simey.me@gmail.com>; Licensed MIT */


Expand Down Expand Up @@ -253,7 +253,7 @@
// without this method the label is just treated like a part
// of the slider and there's no accuracy in the selected value

function labelClick( label ) {
function labelClick( label, e ) {

if (slider.option("disabled")) {
return;
Expand All @@ -264,15 +264,16 @@

if ( slider.values() && slider.values().length ) {

slider.element.slider("values", indexToChange, val );
slider.options.values[ indexToChange ] = slider._trimAlignValue( val );

} else {

slider.element.slider("value", val );
slider.options.value = slider._trimAlignValue( val );

}

slider._lastChangedValue = indexToChange;
slider._refreshValue();
slider._change( e, indexToChange );

}

Expand Down Expand Up @@ -504,7 +505,7 @@

if ( $target.is(".ui-slider-label") ) {

labelClick( $target );
labelClick( $target, e );

slider.element
.one("mouseup.selectPip", function() {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery-ui-slider-pips.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8d27431

Please sign in to comment.