mirror of https://github.com/halo-dev/halo
🍎 新增可设置页面是否可以评论
parent
7486d87003
commit
08a915850b
|
@ -75,8 +75,11 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div>
|
||||
</div>
|
||||
<label for="allowComment" class="control-label">开启评论:</label>
|
||||
<select class="form-control" id="allowComment" name="allowComment">
|
||||
<option value="1" <#if post?? && post.allowComment?default(1)==1>selected</#if>>是</option>
|
||||
<option value="0" <#if post?? && post.allowComment?default(1)==0>selected</#if>>否</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button onclick="push(1)" class="btn btn-default btn-sm ">保存草稿</button>
|
||||
|
@ -229,7 +232,8 @@
|
|||
'postUrl' : $('#postUrl').html().toString(),
|
||||
'postContentMd': editor.getMarkdown(),
|
||||
'postContent': editor.getTextareaSavedHTML(),
|
||||
'postThumbnail': $('#selectImg')[0].src
|
||||
'postThumbnail': $('#selectImg')[0].src,
|
||||
'allowComment' : $('#allowComment').val()
|
||||
},
|
||||
success: function (data) {
|
||||
if(data.code==1){
|
||||
|
|
Loading…
Reference in New Issue