Commit 450280a7 by liuyingying

添加文章链接问题

parent a3cc59cb
...@@ -15,6 +15,14 @@ ...@@ -15,6 +15,14 @@
<div id="edit_title">修改</div> <div id="edit_title">修改</div>
<div id="edit_content"> <div id="edit_content">
<div> <div>
<label for="title">title</label>
<input id="title" name="title">
</div>
<div>
<label for="link">外部链接</label>
<input id="link" name="link">
</div>
<div>
<label>是否公开发布:</label> <label>是否公开发布:</label>
<select name="isPublish" id = 'isPublish'> <select name="isPublish" id = 'isPublish'>
<option value="1" selected>公开(在首页显示)</option> <option value="1" selected>公开(在首页显示)</option>
...@@ -506,6 +514,12 @@ ...@@ -506,6 +514,12 @@
' <div>\n' + ' <div>\n' +
' <label for="url">文章地址:</label>\n' + ' <label for="url">文章地址:</label>\n' +
' <input id="url" name="url" type="text">\n' + ' <input id="url" name="url" type="text">\n' +
' </div>'+' <div>\n' +
' <label>是否公开发布:</label>\n' +
' <select name="isPublish" id = \'isPublish\'>\n' +
' <option value="1" selected>公开(在首页显示)</option>\n' +
' <option value="0" >不公开(仅自己可见)</option>\n' +
' </select>\n' +
' </div>'; ' </div>';
$('#edit_content').append(input_html); $('#edit_content').append(input_html);
} }
...@@ -535,9 +549,6 @@ ...@@ -535,9 +549,6 @@
} }
function create_article_html(){
}
function create_publication_html(){ function create_publication_html(){
$('#edit_content').empty(); $('#edit_content').empty();
let input_html = '<div>\n' + let input_html = '<div>\n' +
...@@ -582,6 +593,10 @@ ...@@ -582,6 +593,10 @@
if(submit_what==='cve'){ if(submit_what==='cve'){
submit_cve(); submit_cve();
} }
if(submit_what==='article'){
submit_article();
}
} }
function login_fail(message){ function login_fail(message){
$('#error_log').empty(); $('#error_log').empty();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment