Commit 6d584943 by semenov

1

parent 1b3f7980
......@@ -84,6 +84,9 @@ class BackendController extends Controller
{
$response['message'] = 'Не удалось сохранить сообщение в базу';
}
} else
{
$response['message'] = 'Форма заполнена неправильно';
}
return $response;
......
......@@ -69,7 +69,7 @@ class ActiveForm extends \skeeks\cms\base\widgets\ActiveForm
var response = data.response;
if (response.success == true)
{
$('input', Jform).each(function(i,s)
$('input, select, textarea', Jform).each(function(i,s)
{
if ($(this).attr('name') != '_csrf' && $(this).attr('name') != 'sx-auto-form')
{
......
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