Finish Notes Support...
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user