Commit 35031a21 authored by Eric Windham's avatar Eric Windham

fixed issue with floats

parent 7c1824d7
......@@ -24,8 +24,10 @@ define( [], function() {
* @return int 1 or 0
*/
updateSetting: function( e, fieldModel, name, settingTypeModel ) {
var minVal = settingTypeModel.get( 'min_val' );
var maxVal = settingTypeModel.get( 'max_val' );
var minVal = parseInt( settingTypeModel.get( 'min_val' ) );
var maxVal = parseInt( settingTypeModel.get( 'max_val' ) );
e.target.value = parseInt( e.target.value );
/*
* if we gave a min value set, revert to that if the user enters
......@@ -33,6 +35,7 @@ define( [], function() {
*/
if( 'undefined' != typeof minVal && null !== minVal ){
if ( e.target.value < minVal ) {
fieldModel.set('value', minVal);
e.target.value = minVal;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment