File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 1818 if ( ! Modernizr . inputtypes . range ) {
1919 $ ( "input[type=range]" ) . each ( function ( index , input ) {
2020 var input = $ ( input ) ,
21- defaults = $ . ui . slider . prototype . options ,
2221 slider = $ ( "<div>" ) . slider ( {
23- min : parseInt ( input . attr ( "min" ) , 10 ) ||
24- defaults . min ,
25- max : parseInt ( input . attr ( "max" ) , 10 ) ||
26- defaults . max ,
27- value : parseInt ( input . attr ( "value" ) , 10 ) ||
28- defaults . value ,
29- step : parseInt ( input . attr ( "step" ) , 10 ) ||
30- defaults . step ,
22+ min : parseInt ( input . attr ( "min" ) , 10 ) || 0 ,
23+ max : parseInt ( input . attr ( "max" ) , 10 ) || 100 ,
24+ value : parseInt ( input . attr ( "value" ) , 10 ) || 0 ,
25+ step : parseInt ( input . attr ( "step" ) , 10 ) || 1 ,
3126 change : function ( event , ui ) {
3227 $ ( this ) . prev ( "input" ) . val ( ui . value ) ;
3328 }
3429 } ) ;
35- input . after ( slider ) . hide ( ) ;
30+ slider . insertAfter ( input ) ;
31+ input . hide ( ) ;
3632 } ) ;
3733 }
3834</ script >
You can’t perform that action at this time.
0 commit comments