mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-11 09:36:07 +00:00
parent
a04d03da44
commit
402e898e91
@ -143,11 +143,9 @@ function BpmnReplace(bpmnFactory, moddle, popupMenu, replace, selection) {
|
||||
return {
|
||||
label: definition.label,
|
||||
className: definition.className,
|
||||
action: {
|
||||
name: definition.actionName,
|
||||
handler: function() {
|
||||
replaceElement(element, definition.target);
|
||||
}
|
||||
id: definition.actionName,
|
||||
action: function() {
|
||||
replaceElement(element, definition.target);
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -161,7 +159,13 @@ function BpmnReplace(bpmnFactory, moddle, popupMenu, replace, selection) {
|
||||
this.openChooser = function(position, element) {
|
||||
var entries = this.getReplaceOptions(element);
|
||||
|
||||
popupMenu.open('replace-menu', position, entries);
|
||||
popupMenu.open(
|
||||
{
|
||||
className: 'replace-menu',
|
||||
position: position,
|
||||
entries: entries
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
this.getReplaceOptions = getReplaceOptions;
|
||||
|
Loading…
x
Reference in New Issue
Block a user