Commit b841eb2b by Carsten Brandt

Merge pull request #3412 from technixp/master

Fixes #3368 value also has to be parsed.
parents a1f89e6f 1182ba5e
......@@ -203,16 +203,16 @@ yii.validation = (function ($) {
valid = value !== compareValue;
break;
case '>':
valid = value > parseFloat(compareValue);
valid = parseFloat(value) > parseFloat(compareValue);
break;
case '>=':
valid = value >= parseFloat(compareValue);
valid = parseFloat(value) >= parseFloat(compareValue);
break;
case '<':
valid = value < parseFloat(compareValue);
valid = parseFloat(value) < parseFloat(compareValue);
break;
case '<=':
valid = value <= parseFloat(compareValue);
valid = parseFloat(value) <= parseFloat(compareValue);
break;
default:
valid = false;
......
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