Merge pull request #7 from rgarmsen2295/mm-1004

MM-1004
Этот коммит содержится в:
Corey Hulen
2015-06-15 10:20:21 -08:00
родитель 91f7d11435 3895599c8f
Коммит 08e02c3dad
2 изменённых файлов: 6 добавлений и 3 удалений

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

@@ -55,12 +55,15 @@ module.exports = React.createClass({
}.bind(this),
function(err) {
var state = {}
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');
}
else {
this.setState(state);
}
}.bind(this)
);
},

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

@@ -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>