Commit 25b53c1d by AlasdairSwan

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

Fixed bug with validation templates expecting number but being passed st...
parents 5dc5f5f9 d0b1a8ec
......@@ -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 );
}
}
......
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