|
|
|
|
@ -29,11 +29,10 @@ function send_comment(form, root){ |
|
|
|
|
$('[name='+$('#'+root).attr('sketch_place')+']').html(''); |
|
|
|
|
|
|
|
|
|
if (!$('[name=try_'+data['data']['try']['id']+']').html()){ |
|
|
|
|
$('[name=comment_list_place]').append('<h3 style="margin-bottom: 25px;margin-left: 20px;' + |
|
|
|
|
$('[name=comment_list_place]').after('<h3 style="margin-bottom: 25px;margin-left: 20px;' + |
|
|
|
|
'font-weight: bold;border-bottom: 1px dotted #ccc;padding-bottom: 5px;">' + |
|
|
|
|
'<i class="glyphicon glyphicon-briefcase"></i> Попыток: (<span name="comments_length">1</span>) : </h3>' + |
|
|
|
|
'<div class="col-lg-12" name="homework_comments_block"></div>'); |
|
|
|
|
$('[name=homework_comments_block]').append(new_try(data['data']['try'])) |
|
|
|
|
'<i class="glyphicon glyphicon-briefcase"></i> Попыток: (<span name="comments_length">1</span>)</h3>'); |
|
|
|
|
$('[name=sent_comment_progress]').before(new_try(data['data']['try'])); |
|
|
|
|
} |
|
|
|
|
$('[name=try_comments_'+data['data']['try']['id']+']').append('<div name="comment_'+data['data']['comment']['id']+'"></div>'); |
|
|
|
|
write_comment($('[name=comment_'+data['data']['comment']['id']+']'), data['data']['comment']); |
|
|
|
|
|