|
|
|
@ -75,6 +75,11 @@ class MemoDetailMDEditor extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onCommit = () => {
|
|
|
|
|
|
|
|
|
|
if(this.props.checkIfProfileCompleted()===false){
|
|
|
|
|
this.props.showhideAccountPhoneemailDialog()
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
const content = this.commentMDEditor.getValue();
|
|
|
|
|
// this.props.showError ==
|
|
|
|
|
if (this.props.showError == true) {
|
|
|
|
@ -108,13 +113,13 @@ class MemoDetailMDEditor extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showEditor() {
|
|
|
|
|
// $("html, body").animate({ scrollTop: $('.commentInput:visible').offset().top - 100 }, 1000, () => {
|
|
|
|
|
// if (this.commentMDEditor) {
|
|
|
|
|
// this.commentMDEditor.cm.focus()
|
|
|
|
|
// } else {
|
|
|
|
|
// this.onMockInputClick()
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
$("html, body").animate({ scrollTop: $('.commentInput:visible').offset().top - 100 }, 1000, () => {
|
|
|
|
|
if (this.commentMDEditor) {
|
|
|
|
|
this.commentMDEditor.cm.focus()
|
|
|
|
|
} else {
|
|
|
|
|
this.onMockInputClick()
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
close = () => {
|
|
|
|
|
this.setState({isInited: false})
|
|
|
|
|