- Fix wrong state issue when the topic is restored.

This commit is contained in:
Paulo Gustavo Veiga
2012-09-27 20:18:12 -03:00
parent f6e5018272
commit 1e5e11a309
4 changed files with 12 additions and 13 deletions

View File

@@ -96,6 +96,11 @@ mindplot.commands.DeleteCommand = new Class({
commandContext.addRelationship(model);
}.bind(this));
// Finally display the topics ...
this._deletedTopicModels.each(function (topicModel) {
var topics = commandContext.findTopics(topicModel.getId());
topics[0].setBranchVisibility(true);
}, this);
// Focus on last recovered topic ..
if (this._deletedTopicModels.length > 0) {