diff --git a/workflow/engine/js/stagesmap/core/stagesmap.js b/workflow/engine/js/stagesmap/core/stagesmap.js index 154e97e2a..1127b6ac3 100755 --- a/workflow/engine/js/stagesmap/core/stagesmap.js +++ b/workflow/engine/js/stagesmap/core/stagesmap.js @@ -22,7 +22,7 @@ var stagesmap=function(){ {image:"/images/add.png",text:G_STRINGS.ID_PROCESSMAP_ADD_STAGE,launch:this.addStage.extend(this)} ] }); - menu_right = this.menu; + menu_add = this.menu; this.observers.menu.register(this.parent.closure({instance:this.menu,method:this.menu.remove}),this.menu); } this.data.render.title(); @@ -319,7 +319,8 @@ var stagesmap=function(){ },args:index})} ] }); - menu_right = this.menu; + menu_edit = menu; + //this.observers.menu.register(this.parent.closure({instance:menu,method:menu.remove}),menu); this.observers.menu.register(menu.remove,menu); } this.panels.editor.elements.content.appendChild(a); diff --git a/workflow/engine/xmlform/tracker/tracker_Configuration.xml b/workflow/engine/xmlform/tracker/tracker_Configuration.xml index a3dfafe1f..282ac7d48 100755 --- a/workflow/engine/xmlform/tracker/tracker_Configuration.xml +++ b/workflow/engine/xmlform/tracker/tracker_Configuration.xml @@ -70,7 +70,7 @@ var editStagesMap = function(sProcessUID) { fx :{modal:true,opacity:true,blinkToFront:false,fadeIn:false,drag:false} }; oPanel.events = { - remove: function() { delete(oPanel); menu_right.remove(); }.extend(this) + remove: function() { delete(oPanel); menu_add.remove(); menu_edit.menu(); }.extend(this) }; oPanel.make(); oPanel.loader.show();