BUG-14843 Process Tracker - Menu Sticks
Deleting all the stage's menus.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
var menu_edit_items = [];
|
||||
var stagesmap=function(){
|
||||
var menu_edit_items = [];
|
||||
this.data={
|
||||
load:function(){
|
||||
var r = new leimnud.module.rpc.xmlhttp({
|
||||
@@ -371,11 +371,6 @@ 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;
|
||||
|
||||
@@ -71,12 +71,13 @@ var editStagesMap = function(sProcessUID) {
|
||||
};
|
||||
oPanel.events = {
|
||||
remove: function() {
|
||||
delete(oPanel);
|
||||
if(typeof menu_edit != "undefined" && menu_edit.maked === true){
|
||||
menu_edit.remove();
|
||||
} else if (typeof menu_add != "undefined" && menu_add.maked === true) {
|
||||
delete(oPanel);
|
||||
try{
|
||||
menu_add.remove();
|
||||
}
|
||||
for(var i=0;i<menu_edit_items.length;i++){
|
||||
menu_edit_items[i].remove();
|
||||
}
|
||||
}catch(e){}
|
||||
}.extend(this)
|
||||
};
|
||||
oPanel.make();
|
||||
|
||||
Reference in New Issue
Block a user