From 2cc8de08982d4784528da8211cf7e8c1c925818c Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Thu, 27 Jun 2019 17:59:30 +0800
Subject: [PATCH] tip
---
.../src/modules/courses/busyWork/CommonWorkPost.js | 2 ++
.../src/modules/tpm/challengesnew/TPMMDEditor.js | 13 +++++++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkPost.js b/public/react/src/modules/courses/busyWork/CommonWorkPost.js
index c9c5c7b45..3f65faafa 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkPost.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkPost.js
@@ -659,6 +659,8 @@ render(){
{getFieldDecorator('description', {
rules: [{
diff --git a/public/react/src/modules/tpm/challengesnew/TPMMDEditor.js b/public/react/src/modules/tpm/challengesnew/TPMMDEditor.js
index e70454056..0f00d1c25 100644
--- a/public/react/src/modules/tpm/challengesnew/TPMMDEditor.js
+++ b/public/react/src/modules/tpm/challengesnew/TPMMDEditor.js
@@ -41,11 +41,12 @@ function md_clear_data(k,mdu,id){
var id1 = "#e_tip_"+id;
var id2 = "#e_tips_"+id;
if(k == 'content'){
- $(id2).html("");
+ $(id2).html(" ");
}else{
- $(id1).html("");
+ $(id1).html(" ");
}
}
+window.md_clear_data = md_clear_data
// editor 存在了jquery对象上,应用不需要自己写md_rec_data方法了
function md_rec_data(k, mdu, id) {
if (window.sessionStorage.getItem(k + mdu) !== null) {
@@ -80,8 +81,8 @@ function md_elocalStorage(editor,mdu,id){
var id1 = "#e_tip_"+id;
var id2 = "#e_tips_"+id;
- $(id1).html(" 数据已于 " + h + ':' + m + ':' + s +" 保存 ");
- $(id2).html("");
+ $(id2).html(" 数据已于 " + h + ':' + m + ':' + s +" 保存 ");
+ // $(id2).html("");
}
},10000);
@@ -302,8 +303,8 @@ export default class TPMMDEditor extends Component {
- {noStorage == true ? ' ' :
}
- {noStorage == true ? ' ' :
}
+ {noStorage == true ? ' ' :
}
+ {/* {noStorage == true ? ' ' :
} */}
)