parent
85150135a6
commit
7e5f4eba14
|
@ -52,7 +52,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|||
|
||||
var target;
|
||||
|
||||
if(type === 'bpmn:TextAnnotation') {
|
||||
if (type === 'bpmn:TextAnnotation') {
|
||||
target = modeling.appendTextAnnotation(element, type);
|
||||
} else {
|
||||
target = modeling.appendFlowNode(element, type);
|
||||
|
@ -95,17 +95,20 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|||
action: function() {
|
||||
append(element, 'bpmn:TextAnnotation');
|
||||
}
|
||||
},
|
||||
'action.delete': {
|
||||
imageUrl: 'data:image/png;base64,' + images.TRASH,
|
||||
action: function(e) {
|
||||
modeling.removeShape(element);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
_.extend(actions, {
|
||||
'action.delete': {
|
||||
imageUrl: 'data:image/png;base64,' + images.TRASH,
|
||||
action: function(e) {
|
||||
modeling.removeShape(element);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return actions;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue