Implement onbeforeunload composer confirmation. closes flarum/core#113

This commit is contained in:
Toby Zerner
2015-06-25 10:34:14 +09:30
parent ae8729250b
commit 34ca6d4515
3 changed files with 12 additions and 3 deletions

View File

@ -49,7 +49,7 @@ export default class ComposerBody extends Component {
}
preventExit() {
return this.content() && this.content() != this.props.originalContent && !confirm(this.props.confirmExit);
return this.content() && this.content() != this.props.originalContent && this.props.confirmExit;
}
onsubmit(value) {