mirror of https://github.com/mindoc-org/mindoc.git
markdown 编辑模式下发布存在未保存内容文档时提示保存
parent
9fc44ab501
commit
6563eac237
|
@ -91,6 +91,12 @@ $(function () {
|
|||
});
|
||||
}else if(name === "release"){
|
||||
if(Object.prototype.toString.call(window.documentCategory) === '[object Array]' && window.documentCategory.length > 0){
|
||||
if($("#markdown-save").hasClass('change')) {
|
||||
var comfirm_result = confirm("编辑内容未保存,需要保存吗?")
|
||||
if(comfirm_result) {
|
||||
saveDocument();
|
||||
}
|
||||
}
|
||||
$.ajax({
|
||||
url : window.releaseURL,
|
||||
data :{"identify" : window.book.identify },
|
||||
|
|
Loading…
Reference in New Issue