diff --git a/common/modules/comment/resources/comment.js b/common/modules/comment/resources/comment.js index 3165bc3..65af2b1 100644 --- a/common/modules/comment/resources/comment.js +++ b/common/modules/comment/resources/comment.js @@ -1,5 +1,38 @@ $(function() { + function addRemoveBlocks(data) + { + $('#overlay, .succses_comm').remove(); + $('body').append('
').append('' + data.text + '
'); + { + $(container).remove(); + addRemoveBlocks(data) + // $(container).append('' + data.text + '
'); + } } else { $(container).prepend(' ') @@ -173,40 +209,7 @@ $(function() { if(!data.error) { $(container).remove(); - addRemoveBlocks() - function addRemoveBlocks() - { - $('#overlay, .succses_comm').remove(); - $('body').append('').append('' + data.text + '
'); + addRemoveBlocks(data) } else { $(container).prepend(' ') diff --git a/common/modules/comment/widgets/views/form-comment.php b/common/modules/comment/widgets/views/form-comment.php index c14055e..816f803 100644 --- a/common/modules/comment/widgets/views/form-comment.php +++ b/common/modules/comment/widgets/views/form-comment.php @@ -30,7 +30,7 @@ if($model->scenario == $model::SCENARIO_GUEST) { echo $form->field($model, 'user_name', [ 'options' => [ - 'class' => 'input-blocks-comm', + 'class' => 'input-blocks-comm fix_marg_', ], 'inputOptions' => [ 'class' => 'custom-input-4', diff --git a/common/modules/comment/widgets/views/project_comment_view.php b/common/modules/comment/widgets/views/project_comment_view.php index 266d76c..4c930d8 100644 --- a/common/modules/comment/widgets/views/project_comment_view.php +++ b/common/modules/comment/widgets/views/project_comment_view.php @@ -28,12 +28,12 @@ if(!empty( $user ) && !empty( $user->userInfo->image )) { echo "= date('d.m.Y', strtotime($model->date_add)) ?>