- Remove fade event on node creation.

- Node are always hidden on creation.
This commit is contained in:
Paulo Gustavo Veiga
2012-09-28 00:07:34 -03:00
parent 6b76c53663
commit e72ae37ac7
4 changed files with 17 additions and 36 deletions

View File

@@ -43,14 +43,14 @@ mindplot.commands.AddTopicCommand = new Class({
}
}
// Finally, focus ...
// Select just created node ...
var designer = commandContext._designer;
var fade = new mindplot.util.FadeEffect([topic, topic.getOutgoingLine()], true);
fade.addEvent('complete', function () {
designer.onObjectFocusEvent(topic);
topic.setOnFocus(true);
});
fade.start();
designer.onObjectFocusEvent(topic);
topic.setOnFocus(true);
// Render node ...
topic.setVisibility(true);
}.bind(this));
},

View File

@@ -33,6 +33,7 @@ mindplot.commands.DragTopicCommand = new Class({
execute:function (commandContext) {
var topic = commandContext.findTopics(this._topicsId)[0];
topic.setVisibility(false);
// Save old position ...
var origParentTopic = topic.getOutgoingConnectedTopic();
@@ -69,6 +70,7 @@ mindplot.commands.DragTopicCommand = new Class({
this._parentId = origParentTopic.getId();
}
}
topic.setVisibility(true);
// Store for undo ...
this._order = origOrder;