mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +01:00
Reset all edition actions before delete.
This commit is contained in:
parent
322b0ba13e
commit
7f7a67872e
@ -752,7 +752,16 @@ mindplot.Designer = new Class({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_resetEdition:function () {
|
||||||
|
var screenManager = this._workspace.getScreenManager();
|
||||||
|
screenManager.fireEvent("update");
|
||||||
|
screenManager.fireEvent("mouseup");
|
||||||
|
this._relPivot.dispose();
|
||||||
|
},
|
||||||
|
|
||||||
deleteSelectedEntities:function () {
|
deleteSelectedEntities:function () {
|
||||||
|
// Is there some action in progress ?.
|
||||||
|
this._resetEdition();
|
||||||
|
|
||||||
var topics = this.getModel().filterSelectedTopics();
|
var topics = this.getModel().filterSelectedTopics();
|
||||||
var relation = this.getModel().filterSelectedRelationships();
|
var relation = this.getModel().filterSelectedRelationships();
|
||||||
|
Loading…
Reference in New Issue
Block a user