mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Reported issue during the edition. The node on focus seems not to be always available.
This commit is contained in:
parent
ed71bbc775
commit
1555560415
@ -684,7 +684,6 @@ mindplot.Designer = new Class({
|
|||||||
dmodel.addRelationship(result);
|
dmodel.addRelationship(result);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -827,13 +826,17 @@ mindplot.Designer = new Class({
|
|||||||
addLink:function () {
|
addLink:function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var topic = model.selectedTopic();
|
var topic = model.selectedTopic();
|
||||||
|
if (topic) {
|
||||||
topic.showLinkEditor();
|
topic.showLinkEditor();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
addNote:function () {
|
addNote:function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var topic = model.selectedTopic();
|
var topic = model.selectedTopic();
|
||||||
|
if (topic) {
|
||||||
topic.showNoteEditor();
|
topic.showNoteEditor();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
goToNode:function (node) {
|
goToNode:function (node) {
|
||||||
|
Loading…
Reference in New Issue
Block a user