Merge branch 'master' of https://github.com/typecho/typecho-replica
Conflicts: admin/manage-comments.php
This commit is contained in:
@@ -93,6 +93,39 @@ $comments = Typecho_Widget::widget('Widget_Comments_Admin');
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- 编辑评论 -->
|
||||
<tr class="comment-edit">
|
||||
<td></td>
|
||||
<td colspan="2" valign="top">
|
||||
<p>
|
||||
<label for="">用户名</label>
|
||||
<input class="text-s w-100" type="text">
|
||||
</p>
|
||||
<p>
|
||||
<label for="">Email</label>
|
||||
<input class="text-s w-100" type="email">
|
||||
</p>
|
||||
<p>
|
||||
<label for="">IP 地址</label>
|
||||
<input class="text-s w-100" type="text">
|
||||
</p>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<p>
|
||||
<label for="">发布时间</label>
|
||||
<input class="text-s w-40" type="text">
|
||||
</p>
|
||||
<p>
|
||||
<label for="">内容</label>
|
||||
<textarea name="" id="" rows="4" class="w-90"></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<button type="submit" class="btn-s primary">提交</button>
|
||||
<button type="button" class="btn-s">取消</button>
|
||||
</p>
|
||||
</td>
|
||||
</tr><!-- end .comment-edit -->
|
||||
|
||||
<?php if($comments->have()): ?>
|
||||
<?php while($comments->next()): ?>
|
||||
<tr id="<?php $comments->theId(); ?>">
|
||||
@@ -219,7 +252,7 @@ $(document).ready(function () {
|
||||
var form = $('<form action="post" action="'
|
||||
+ t.attr('rel') + '" class="comment-reply">'
|
||||
+ '<p><textarea name="text" class="w-90" rows="3"></textarea></p>'
|
||||
+ '<p><button type="submit" class="btn-s primary"><?php _e('提交回复'); ?></button> <button type="button" class="btn-s cancel"><?php _e('取消'); ?></button></p>'
|
||||
+ '<p><button type="submit" class="btn-s primary"><?php _e('回复'); ?></button> <button type="button" class="btn-s cancel"><?php _e('取消'); ?></button></p>'
|
||||
+ '</form>').insertBefore($('.comment-action', td));
|
||||
|
||||
$('.cancel', form).click(function () {
|
||||
|
||||
Reference in New Issue
Block a user