Commit d727ef3b authored by Peter Droogmans's avatar Peter Droogmans
Browse files

check fo any step accepts all cases

parent 73e221e3
......@@ -96,7 +96,7 @@ function clientside_validation_html5($form_id, $element, &$js_rules) {
function _clientside_validation_set_minmax_html5($name, $title, $min, $max, $step, &$js_rules, $message='') {
$title = variable_get('clientside_validation_prefix', '') . $title . variable_get('clientside_validation_suffix', '');
if ($step == 'any') {
if (strtolower($step) == 'any') {
_clientside_validation_set_minmax($name, $title, $min, $max, $js_rules, $message);
}
elseif (isset($min) && $min !== '' && isset($max) && $max !== '') {
......
Supports Markdown
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