Added Code window grabber
This commit is contained in:
parent
1522aff74a
commit
df25ec95ea
|
@ -33,6 +33,7 @@ export default function Editor(
|
|||
|
||||
this._state = {
|
||||
isOpen: undefined,
|
||||
isEnabled: undefined,
|
||||
};
|
||||
|
||||
this._init();
|
||||
|
@ -50,15 +51,19 @@ export default function Editor(
|
|||
if (context.newSelection[0] && self._parent){
|
||||
if (context.newSelection[0].type == "bpmn:ScriptTask"){
|
||||
domClasses(self._parent).add('enabled');
|
||||
document.getElementById("cam-script-val");
|
||||
} else {
|
||||
domClasses(self._parent).remove('enabled');
|
||||
if (self.isOpen()){
|
||||
self.close();
|
||||
}
|
||||
}
|
||||
self._state.isEnabled = true;
|
||||
// grab script properties window
|
||||
self._codestore = document.getElementById("cam-script-val");
|
||||
console.log(self._codestore);
|
||||
return;
|
||||
}}
|
||||
domClasses(self._parent).remove('enabled');
|
||||
self._state.isEnabled = false;
|
||||
if (self.isOpen()){
|
||||
self.close();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Editor.$inject = [
|
||||
|
|
Loading…
Reference in New Issue