PM-1531 "ProcessMaker 3.0 && 2.9 Enterprise and Community..." SOLVED

Issue:
    ProcessMaker 3.0 && 2.9  Enterprise and Community editions release generation
Cause:
    Ninguna
Solution:
    - Si la version es >= 3 solo se muestra la opcion "New BPMN Project"
    - Si la version es < 3  solo se muestra la opcion "New Project"
This commit is contained in:
Victor Saisa Lopez
2015-03-23 21:13:03 -04:00
parent 8331421b7b
commit e2efd9c4bc
2 changed files with 38 additions and 21 deletions

View File

@@ -175,6 +175,37 @@ Ext.onReady(function(){
emptyMsg: "",
items:[_('ID_PAGE_SIZE')+':',comboPageSize]
}) */
var mnuNewBpmnProject = {
text: "New BPMN Project",
iconCls: "silk-add",
icon: "",
handler: function ()
{
newProcess({type:"bpmnProject"});
}
};
var mnuNewProject = {
text: "New Project",
iconCls: "silk-add",
icon: "",
handler: function ()
{
newProcess({type: "classicProject"});
}
};
var arrayMenuNew = [];
if (typeof(arrayMenuNewOption["bpmn"]) != "undefined") {
arrayMenuNew.push(mnuNewBpmnProject);
}
if (typeof(arrayMenuNewOption["pm"]) != "undefined") {
arrayMenuNew.push(mnuNewProject);
}
processesGrid = new Ext.grid.GridPanel( {
region: 'center',
layout: 'fit',
@@ -245,24 +276,7 @@ Ext.onReady(function(){
xtype: 'tbsplit',
text: _('ID_NEW'),
iconCls: 'button_menu_ext ss_sprite ss_add',
menu: [
{
text: "New BPMN Project",
iconCls: 'silk-add',
icon: '',
handler: function () {
newProcess({type:"bpmnProject"});
}
},
{
text: "New Project",
iconCls: 'silk-add',
icon: '',
handler: function () {
newProcess({type:"classicProject"});
}
}
],
menu: arrayMenuNew,
listeners: {
"click": function (obj, e) {
obj.showMenu();