- Add delete button to remove relationship

- Fix add button in the toolbar.
This commit is contained in:
Paulo Gustavo Veiga
2012-07-16 00:15:59 -03:00
parent 16bbc0a456
commit f449eff9ce
3 changed files with 40 additions and 27 deletions

View File

@@ -21,7 +21,7 @@ mindplot.Relationship = new Class({
getStrokeColor:function () {
return '#9b74e6';
},
type: "Relationship"
type:"Relationship"
},
initialize:function (sourceNode, targetNode, model) {
$assert(sourceNode, "sourceNode can not be null");
@@ -202,8 +202,7 @@ mindplot.Relationship = new Class({
this._controlPointsController.setVisibility(focus);
this._onFocus = focus;
console.log("foucus:....");
this.fireEvent(focus ? 'ontfocus' : 'ontblur', this);
}
},
@@ -316,5 +315,10 @@ mindplot.Relationship = new Class({
getId:function () {
return this._model.getId();
},
fireEvent:function (type, event) {
var elem = this._line2d;
elem.fireEvent(type, event);
}
});