parent
2807129585
commit
e79e70acb4
|
@ -112,6 +112,18 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|||
};
|
||||
}
|
||||
|
||||
function splitLaneHandler(count) {
|
||||
|
||||
return function(event, element) {
|
||||
// actual split
|
||||
modeling.splitLane(element, count);
|
||||
|
||||
// refresh context pad after split to
|
||||
// get rid of split icons
|
||||
contextPad.open(element, true);
|
||||
};
|
||||
}
|
||||
|
||||
if (isAny(businessObject, [ 'bpmn:Lane', 'bpmn:Participant' ])) {
|
||||
|
||||
var childLanes = getChildLanes(element);
|
||||
|
@ -136,9 +148,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|||
className: 'icon-lane-divide-two',
|
||||
title: 'Divide into two Lanes',
|
||||
action: {
|
||||
click: function(event, element) {
|
||||
modeling.splitLane(element, 2);
|
||||
}
|
||||
click: splitLaneHandler(2)
|
||||
}
|
||||
},
|
||||
'lane-divide-three': {
|
||||
|
@ -146,9 +156,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|||
className: 'icon-lane-divide-three',
|
||||
title: 'Divide into three Lanes',
|
||||
action: {
|
||||
click: function(event, element) {
|
||||
modeling.splitLane(element, 3);
|
||||
}
|
||||
click: splitLaneHandler(3)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue