cleanup tests

This commit is contained in:
Jonathan Labreuille
2015-11-12 14:11:27 +01:00
parent 70cfcbe7cc
commit 10a20935c3
24 changed files with 31 additions and 6410 deletions

View File

@@ -90,15 +90,15 @@ define(
if(response.result === true) {
if(this.props.onSuccess !== undefined) {
this.props.onSuccess()
this.props.onSuccess();
} else {
this.history.pushState(null, '/')
}
if(this.props.params.id !== undefined) {
this.props.messages['updated']();
this.props.messages.onUpdate();
} else {
this.props.messages['created']();
this.props.messages.onCreate();
}
} else {
if(response.result === false) {