mirror of https://github.com/1099438829/apeblog
修正文章编辑
This commit is contained in:
parent
8e5dcf5d0e
commit
006b4c83cb
|
|
@ -51,7 +51,7 @@ class DocumentCategory extends BaseModel
|
|||
if (!empty($ids)) $model = $model->where("id","not in", $ids);
|
||||
if ($type != 0) $model = $model->where("type",$type);
|
||||
$model = $model->where("status",1);
|
||||
$model = $model->field("id,name");
|
||||
$model = $model->field("id,title");
|
||||
$data = $model->select();
|
||||
return $data ? $data->toArray() : [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label for="is_recommend">推荐</label>
|
||||
<label>推荐</label>
|
||||
<div class="clearfix">
|
||||
<label class="lyear-radio radio-inline radio-primary">
|
||||
<input type="radio" name="is_recommend" value="1"><span>是</span>
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label for="is_hot">热门</label>
|
||||
<label>热门</label>
|
||||
<div class="clearfix">
|
||||
<label class="lyear-radio radio-inline radio-primary">
|
||||
<input type="radio" name="is_hot" value="1"><span>是</span>
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label for="is_top">顶置</label>
|
||||
<label>顶置</label>
|
||||
<div class="clearfix">
|
||||
<label class="lyear-radio radio-inline radio-primary">
|
||||
<input type="radio" name="is_top" value="1"><span>是</span>
|
||||
|
|
@ -104,7 +104,7 @@
|
|||
<label for="status">状态</label>
|
||||
<div class="clearfix">
|
||||
<label class="lyear-radio radio-inline radio-primary">
|
||||
<input type="radio" name="status" value="1" checked><span>启用</span>
|
||||
<input type="radio" id="status" name="status" value="1" checked><span>启用</span>
|
||||
</label>
|
||||
<label class="lyear-radio radio-inline radio-primary">
|
||||
<input type="radio" name="status" value="0"><span>禁用</span>
|
||||
|
|
@ -157,7 +157,7 @@
|
|||
"code"
|
||||
],
|
||||
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code",
|
||||
images_upload_url: '/admin/widget.files/tinymce',
|
||||
images_upload_url: '/admin/files/tinymce',
|
||||
});
|
||||
});
|
||||
/**
|
||||
|
|
@ -173,10 +173,11 @@
|
|||
*/
|
||||
function upload(inputName) {
|
||||
var formData = new FormData();
|
||||
formData.append("type",'images');
|
||||
formData.append("file",$("#file"+inputName)[0].files[0]);
|
||||
$.ajax({
|
||||
type:'POST',
|
||||
url:'/admin/widget.files/image',
|
||||
url:'/admin/files/upload',
|
||||
data: formData,
|
||||
cache: false,
|
||||
processData: false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue