Finish Notes Support...

This commit is contained in:
Paulo Veiga
2011-10-07 00:21:49 -03:00
parent 1f02d51434
commit 7194269826
18 changed files with 422 additions and 136 deletions

View File

@@ -25,17 +25,10 @@ mindplot.commands.RemoveLinkFromTopicCommand = new Class({
execute: function(commandContext) {
var topic = commandContext.findTopics(this._objectsIds)[0];
this._url = topic._link.getUrl();
var updated = function() {
topic.removeLink();
}.bind(this);
updated.delay(0);
topic.removeLink();
},
undoExecute: function(commandContext) {
var topic = commandContext.findTopics(this._objectsIds)[0];
var updated = function() {
topic.addLink(this._url, commandContext._designer);
topic._adjustShapes();
}.bind(this);
updated.delay(0);
topic.addLink(this._url, commandContext._designer);
}
});