fix blog

parent c18e637f
...@@ -122,8 +122,8 @@ use common\modules\bids\models\Bid; ...@@ -122,8 +122,8 @@ use common\modules\bids\models\Bid;
<?php echo $form->field($model, 'message')->textArea([ <?php echo $form->field($model, 'message')->textArea([
'placeholder' => 'Что хочу почитать? 'placeholder' => 'Что хочу почитать?
Например: Хочу почитать про то, как настраивается контекстная реклама. Например: Хочу почитать про то, как настраивается контекстная реклама.
Про то как выставляются ставки.', Про то как выставляются ставки.',
'class' => 'sect_cont_form__textarea' 'class' => 'sect_cont_form__textarea'
])->label(false); ?> ])->label(false); ?>
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
.field-bid-file { .field-bid-file {
margin: 0; margin: 0;
} }
.has-error input { .has-error input,
.has-error textarea {
background: #fff url(../images/icon-fail.png) no-repeat 96% center !important; background: #fff url(../images/icon-fail.png) no-repeat 96% center !important;
border: 1px solid #E9A2A2 !important; border: 1px solid #E9A2A2 !important;
} }
......
...@@ -32,6 +32,8 @@ $('form.bids-form').on('beforeSubmit', function(e) { ...@@ -32,6 +32,8 @@ $('form.bids-form').on('beforeSubmit', function(e) {
var response = xhr.responseText; var response = xhr.responseText;
} }
form.find('.has-error').removeClass('has-error');
if(response.success) if(response.success)
{ {
form.find('input:not(.not_clear), textarea').val(''); form.find('input:not(.not_clear), textarea').val('');
...@@ -43,8 +45,6 @@ $('form.bids-form').on('beforeSubmit', function(e) { ...@@ -43,8 +45,6 @@ $('form.bids-form').on('beforeSubmit', function(e) {
'Action': form.data('title'), 'Action': form.data('title'),
'Label': 'Успешно' 'Label': 'Успешно'
}); });
form.find('.has-error').removeClass('has-error');
} }
else else
{ {
......
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