protected $_step = 'any';
protected $_min = null;
protected $_max = null;
+ protected $_lang = 'en-150';
public function getDefaultAttributes()
{
$res = parent::getDefaultAttributes();
- $attrs = ['min', 'max', 'step'];
+ $attrs = ['min', 'max', 'step', 'lang'];
$defaults = [];
foreach ($attrs as $attr) {
if (null === $this->{'_' . $attr}) {
var conditions = $(this).data('when');
var match = true;
$.each(conditions, function (k, v) {
+ if (!Array.isArray(v)) {
+ v = [v];
+ }
var val = $(form).find('[name="' + k + '"]').val();
var valnum = parseFloat(val);
if (!isNumber(valnum)) {