Commit 12a143bd by Alexander Kochetov

RangeValidator client side type conversion to array

parent a4e88297
......@@ -99,7 +99,7 @@ yii.validation = (function ($) {
var inArray = true;
$.each(value, function(i, v) {
$.each($.isArray(value) ? value : [value], function(i, v) {
if ($.inArray(v, options.range) == -1) {
inArray = false;
return 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