Minor fixes.

This commit is contained in:
Paulo Veiga
2011-08-08 09:20:32 -03:00
parent ff8cf207ca
commit e9ed01c87d
11 changed files with 189 additions and 376 deletions

View File

@@ -25,15 +25,15 @@ mindplot.BrixActionDispatcher = new Class({
},
changeTextOnTopic : function(topicsIds, text) {
var framework=$wise_collaborationManager.getCollaborativeFramework();
var framework = mindplot.collaboration.CollaborationManager.getInstance().getCollaborativeFramework();
if (!(topicsIds instanceof Array)) {
topicsIds = [topicsIds];
}
var topic = framework.getTopic(topicsIds[0]);
var callback = function(event, topic){
var callback = function(event, topic) {
topic.getBrixModel().removeListener("valueChanged", callback);
this._actionDispatcher.changeTextOnTopic(topic.getId(),event.getNewValue());
}.bindWithEvent(this,topic);
this._actionDispatcher.changeTextOnTopic(topic.getId(), event.getNewValue());
}.bindWithEvent(this, topic);
topic.setText(text, true, callback);
}
});