BUG-14843 Process Tracker - Menu Sticks
I added the menu item in the remove event when the windows is closed.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var stagesmap=function(){
|
||||
var menu_edit_items = [];
|
||||
this.data={
|
||||
load:function(){
|
||||
var r = new leimnud.module.rpc.xmlhttp({
|
||||
@@ -227,8 +228,8 @@ var stagesmap=function(){
|
||||
});
|
||||
if(this.options.rw===true)
|
||||
{
|
||||
var menu = new this.parent.module.app.menuRight();
|
||||
menu.make({
|
||||
this.menuEdit = new this.parent.module.app.menuRight();
|
||||
this.menuEdit.make({
|
||||
target:a,
|
||||
width:201,
|
||||
theme:this.options.theme,
|
||||
@@ -319,8 +320,8 @@ var stagesmap=function(){
|
||||
},args:index})}
|
||||
]
|
||||
});
|
||||
menu_edit = menu;
|
||||
this.observers.menu.register(menu.remove,menu);
|
||||
menu_edit_items.push(this.menuEdit);
|
||||
this.observers.menu.register(this.menuEdit.remove,this.menuEdit);
|
||||
}
|
||||
this.panels.editor.elements.content.appendChild(a);
|
||||
a.appendChild(b);
|
||||
@@ -370,6 +371,11 @@ var stagesmap=function(){
|
||||
},args:[a,c,index,options.object.drag]}),
|
||||
|
||||
finish :this.parent.closure({instance:this,method:function(div,divC,uid,drag){
|
||||
for(var j=0;j<this.data.db.stages.length;j++){
|
||||
if(menu_edit_items[j].options.target.textContent == options.label){
|
||||
menu_edit = menu_edit_items[j];
|
||||
}
|
||||
}
|
||||
if(!drag.moved){return false;}
|
||||
var pos = this.parent.dom.position(div);
|
||||
var h=pos;
|
||||
|
||||
Reference in New Issue
Block a user