Invalid RootId parameter error message no longer displays on the client. Changed acceptance of error from Agree to Okay.

Этот коммит содержится в:
Reed Garmsen
2015-06-15 09:37:26 -07:00
родитель c94883e0df
Коммит 5f4daf6e20
2 изменённых файлов: 1 добавлений и 4 удалений

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

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

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

@@ -23,7 +23,7 @@ module.exports = React.createClass({
<p>Someone deleted the message on which you tried to post a comment.</p>
</div>
<div className="modal-footer">
<button type="button" className="btn btn-primary" data-dismiss="modal">Agree</button>
<button type="button" className="btn btn-primary" data-dismiss="modal">Okay</button>
</div>
</div>
</div>