Skip to content

Commit

Permalink
Merge pull request #2 from mattandersen/master
Browse files Browse the repository at this point in the history
New option to suppress tickLabel tweening
  • Loading branch information
bseth99 committed Oct 22, 2013
2 parents 70d328a + ff55d5b commit 85f9503
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion dist/ext-jquery-ui.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Ben's jQuery UI Extensions - v1.0.7 - 2013-09-18
/*! Ben's jQuery UI Extensions - v1.0.7 - 2013-10-22
* https://github.com/bseth99/jquery-ui-extensions
* Includes: jquery.ui.spinner.css, jquery.ui.slidespinner.css, jquery.ui.labeledslider.css, jquery.ui.combobox.css, jquery.ui.waitbutton.css
* Copyright 2013 Ben Olson; Licensed MIT */
Expand Down
6 changes: 4 additions & 2 deletions dist/ext-jquery-ui.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Ben's jQuery UI Extensions - v1.0.7 - 2013-09-18
/*! Ben's jQuery UI Extensions - v1.0.7 - 2013-10-22
* https://github.com/bseth99/jquery-ui-extensions
* Includes: jquery.ui.spinner.js, jquery.ui.combobox.js, jquery.ui.labeledslider.js, jquery.ui.slidespinner.js, jquery.ui.waitbutton.js
* Copyright 2013 Ben Olson; Licensed MIT */
Expand Down Expand Up @@ -743,11 +743,13 @@ $.widget( "ui.spinner", {

options: {
tickInterval: 0,
tweenLabels: true,
tickLabels: null
},

uiSlider: null,
tickInterval: 0,
tweenLabels: true,

_create: function( ) {

Expand Down Expand Up @@ -794,7 +796,7 @@ $.widget( "ui.spinner", {
for (;i<=cnt;i++) {
$('<div>').addClass( 'ui-slider-label-ticks' )
.css( dir, (Math.round( i / cnt * 10000 ) / 100) + '%' )
.html( '<span>'+( labels[i*inr+min] ? labels[i*inr+min] : i*inr+min )+'</span>' )
.html( '<span>'+( labels[i*inr+min] ? labels[i*inr+min] : (this.options.tweenLabels ? i*inr+min : '') )+'</span>' )
.appendTo( $lbl );
}

Expand Down
2 changes: 1 addition & 1 deletion dist/ext-jquery-ui.min.css

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

4 changes: 2 additions & 2 deletions dist/ext-jquery-ui.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion dist/full/jquery.ui.labeledslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@

options: {
tickInterval: 0,
tweenLabels: true,
tickLabels: null
},

uiSlider: null,
tickInterval: 0,
tweenLabels: true,

_create: function( ) {

Expand Down Expand Up @@ -90,7 +92,7 @@
for (;i<=cnt;i++) {
$('<div>').addClass( 'ui-slider-label-ticks' )
.css( dir, (Math.round( i / cnt * 10000 ) / 100) + '%' )
.html( '<span>'+( labels[i*inr+min] ? labels[i*inr+min] : i*inr+min )+'</span>' )
.html( '<span>'+( labels[i*inr+min] ? labels[i*inr+min] : (this.options.tweenLabels ? i*inr+min : '') )+'</span>' )
.appendTo( $lbl );
}

Expand Down
2 changes: 1 addition & 1 deletion dist/minified/jquery.ui.combobox.min.js

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

4 changes: 2 additions & 2 deletions dist/minified/jquery.ui.labeledslider.min.js

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

2 changes: 1 addition & 1 deletion dist/minified/jquery.ui.slidespinner.min.js

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

Loading

0 comments on commit 85f9503

Please sign in to comment.