I solved the issue PM-2023
This commit is contained in:
@@ -6,6 +6,8 @@ var processesGrid;
|
|||||||
var store;
|
var store;
|
||||||
var comboCategory;
|
var comboCategory;
|
||||||
var winDesigner;
|
var winDesigner;
|
||||||
|
var typeMnuNew;
|
||||||
|
var newTypeProcess;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -200,10 +202,35 @@ Ext.onReady(function(){
|
|||||||
|
|
||||||
if (typeof(arrayMenuNewOption["bpmn"]) != "undefined") {
|
if (typeof(arrayMenuNewOption["bpmn"]) != "undefined") {
|
||||||
arrayMenuNew.push(mnuNewBpmnProject);
|
arrayMenuNew.push(mnuNewBpmnProject);
|
||||||
|
typeMnuNew = "bpmnProject";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof(arrayMenuNewOption["pm"]) != "undefined") {
|
if (typeof(arrayMenuNewOption["pm"]) != "undefined") {
|
||||||
arrayMenuNew.push(mnuNewProject);
|
arrayMenuNew.push(mnuNewProject);
|
||||||
|
typeMnuNew = "classicProject";
|
||||||
|
}
|
||||||
|
|
||||||
|
if(typeof(arrayMenuNewOption["bpmn"]) != "undefined" && typeof(arrayMenuNewOption["pm"]) != "undefined"){
|
||||||
|
newTypeProcess = {
|
||||||
|
xtype: 'tbsplit',
|
||||||
|
text: _('ID_NEW'),
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_add',
|
||||||
|
menu: arrayMenuNew,
|
||||||
|
listeners: {
|
||||||
|
"click": function (obj, e) {
|
||||||
|
obj.showMenu();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
newTypeProcess = {
|
||||||
|
xtype: 'tbsplit',
|
||||||
|
text: _('ID_NEW'),
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_add',
|
||||||
|
handler: function (){
|
||||||
|
newProcess({type: typeMnuNew});
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
processesGrid = new Ext.grid.GridPanel( {
|
processesGrid = new Ext.grid.GridPanel( {
|
||||||
@@ -272,17 +299,7 @@ Ext.onReady(function(){
|
|||||||
}),
|
}),
|
||||||
store: store,
|
store: store,
|
||||||
tbar:[
|
tbar:[
|
||||||
{
|
newTypeProcess,/*
|
||||||
xtype: 'tbsplit',
|
|
||||||
text: _('ID_NEW'),
|
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_add',
|
|
||||||
menu: arrayMenuNew,
|
|
||||||
listeners: {
|
|
||||||
"click": function (obj, e) {
|
|
||||||
obj.showMenu();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},/*
|
|
||||||
{
|
{
|
||||||
text: _('ID_NEW'),
|
text: _('ID_NEW'),
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_add',
|
iconCls: 'button_menu_ext ss_sprite ss_add',
|
||||||
|
|||||||
Reference in New Issue
Block a user