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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user