BUG-14843 Process Tracker - Menu Sticks

I added the menu item in the remove event when the windows is clsed.
This commit is contained in:
jennylee
2014-05-08 15:33:07 -04:00
parent 887a8dae48
commit 3a4b3642b9
2 changed files with 3 additions and 1 deletions

View File

@@ -22,6 +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;
this.observers.menu.register(this.parent.closure({instance:this.menu,method:this.menu.remove}),this.menu);
}
this.data.render.title();
@@ -318,6 +319,7 @@ var stagesmap=function(){
},args:index})}
]
});
menu_right = menu;
this.observers.menu.register(menu.remove,menu);
}
this.panels.editor.elements.content.appendChild(a);

View File

@@ -62,7 +62,7 @@ var editStagesMap = function(sProcessUID) {
fx :{modal:true,opacity:true,blinkToFront:false,fadeIn:false,drag:false}
};
oPanel.events = {
remove: function() { delete(oPanel); }.extend(this)
remove: function() { delete(oPanel); menu_right.remove(); }.extend(this)
};
oPanel.make();
oPanel.loader.show();