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 stagesmap=function(){
|
||||||
var menu_edit_items = [];
|
|
||||||
this.data={
|
this.data={
|
||||||
load:function(){
|
load:function(){
|
||||||
var r = new leimnud.module.rpc.xmlhttp({
|
var r = new leimnud.module.rpc.xmlhttp({
|
||||||
@@ -371,11 +371,6 @@ var stagesmap=function(){
|
|||||||
},args:[a,c,index,options.object.drag]}),
|
},args:[a,c,index,options.object.drag]}),
|
||||||
|
|
||||||
finish :this.parent.closure({instance:this,method:function(div,divC,uid,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;}
|
if(!drag.moved){return false;}
|
||||||
var pos = this.parent.dom.position(div);
|
var pos = this.parent.dom.position(div);
|
||||||
var h=pos;
|
var h=pos;
|
||||||
|
|||||||
@@ -72,11 +72,12 @@ var editStagesMap = function(sProcessUID) {
|
|||||||
oPanel.events = {
|
oPanel.events = {
|
||||||
remove: function() {
|
remove: function() {
|
||||||
delete(oPanel);
|
delete(oPanel);
|
||||||
if(typeof menu_edit != "undefined" && menu_edit.maked === true){
|
try{
|
||||||
menu_edit.remove();
|
|
||||||
} else if (typeof menu_add != "undefined" && menu_add.maked === true) {
|
|
||||||
menu_add.remove();
|
menu_add.remove();
|
||||||
|
for(var i=0;i<menu_edit_items.length;i++){
|
||||||
|
menu_edit_items[i].remove();
|
||||||
}
|
}
|
||||||
|
}catch(e){}
|
||||||
}.extend(this)
|
}.extend(this)
|
||||||
};
|
};
|
||||||
oPanel.make();
|
oPanel.make();
|
||||||
|
|||||||
Reference in New Issue
Block a user