Error messages revolving around comment creation appear clientside unless we have a better solution in place

Этот коммит содержится в:
Reed Garmsen
2015-06-15 11:09:57 -07:00
родитель c84e091f2a
Коммит 2048b9567f

Просмотреть файл

@@ -55,9 +55,15 @@ module.exports = React.createClass({
}.bind(this),
function(err) {
var state = {};
state.server_error = err.message;
if (err.message === "Invalid RootId parameter") {
if ($('#post_deleted').length > 0) $('#post_deleted').modal('show');
}
else {
this.setState(state);
}
}.bind(this)
);
},