Merge pull request #5852 from edx/alasdair/logistration-utils-bug

Fixed bug with validation templates expecting number but being passed st...
This commit is contained in:
AlasdairSwan
2014-11-05 16:02:21 -05:00

View File

@@ -131,9 +131,9 @@ var edx = edx || {};
};
if ( key === 'min' ) {
obj.context.count = $el.attr('minlength');
obj.context.count = parseInt( $el.attr('minlength'), 10 );
} else if ( key === 'max' ) {
obj.context.count = $el.attr('maxlength');
obj.context.count = parseInt( $el.attr('maxlength'), 10 );
}
}