Severa lfixed.

This commit is contained in:
Paulo Veiga
2011-09-04 21:32:29 -03:00
parent dbb2b2d0c9
commit 0e21aad802
13 changed files with 85 additions and 65 deletions

View File

@@ -21,13 +21,13 @@ mindplot.commands.AddNoteToTopicCommand = new Class({
initialize: function(topicId, text) {
$assert(topicId, 'topicId can not be null');
this._topicsIds = topicId;
this._text = text;
this._textShape = text;
this._id = mindplot.Command._nextUUID();
},
execute: function(commandContext) {
var topic = commandContext.findTopics(this._topicsIds)[0];
var updated = function() {
topic.addNote(this._text);
topic.addNote(this._textShape);
topic._adjustShapes();
}.bind(this);
updated.delay(0);

View File

@@ -26,7 +26,7 @@ mindplot.commands.RemoveNoteFromTopicCommand = new Class({
execute: function(commandContext)
{
var topic = commandContext.findTopics(this._topicsIds)[0];
this._text = topic._note.getText();
this._textShape = topic._note.getText();
var updated = function() {
topic.removeNote();
}.bind(this);
@@ -36,7 +36,7 @@ mindplot.commands.RemoveNoteFromTopicCommand = new Class({
{
var topic = commandContext.findTopics(this._topicsIds)[0];
var updated = function() {
topic.addNote(this._text,commandContext._designer);
topic.addNote(this._textShape,commandContext._designer);
topic._adjustShapes();
}.bind(this);
updated.delay(0);