mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-25 10:59:13 +08:00
1、实现网站首页
2、实现文档阅读 3、实现项目发布 4、实现用户权限
This commit is contained in:
@@ -99,7 +99,21 @@
|
||||
<script src="/static/js/main.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("#gloablEditForm").ajaxForm({
|
||||
beforeSubmit : function () {
|
||||
var title = $.trim($("#siteName").val());
|
||||
|
||||
if (title === ""){
|
||||
return showError("网站标题不能为空");
|
||||
}
|
||||
},success : function (res) {
|
||||
if(res.errcode === 0) {
|
||||
showSuccess("保存成功")
|
||||
}else{
|
||||
showError(res.message);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user