Commit 7dcac8ea by semenov

1.0.2

parent a579ee29
......@@ -237,4 +237,22 @@ class FormValidateModel extends Model
return $result;
}
/**
* @inheritdoc
*/
public function attributeLabelsValues()
{
$result = [];
foreach ($this->modelForm->fields() as $field)
{
if ($this->getAttribute($field->attribute))
{
$result[$field->normalName()] = $this->getAttribute($field->attribute);
}
}
return $result;
}
}
\ No newline at end of file
......@@ -83,6 +83,14 @@ class ActiveForm extends \skeeks\cms\base\widgets\ActiveForm
sx.notify.error(response.message);
}
if (data.redirect)
{
_.delay(function()
{
window.location.href = data.redirect;
}, 200);
}
})
.execute();
......
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 sign in to comment