Upgrade JS files
This commit is contained in:
@@ -160,9 +160,7 @@ Ext.onReady(function(){
|
||||
{name : 'CASES_COUNT_COMPLETED', type:'float'},
|
||||
{name : 'CASES_COUNT_CANCELLED', type:'float'},
|
||||
{name : 'PROJECT_TYPE', type:'string'}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
,{name : "PRO_TYPE_PROCESS", type: "string"}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
,{name : "PRO_UPDATE_DATE_LABEL"}
|
||||
]
|
||||
}),
|
||||
@@ -318,7 +316,7 @@ Ext.onReady(function(){
|
||||
exportProcess();
|
||||
}
|
||||
};
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
if (isGranularFeature) {
|
||||
granularExportProcessOption = {
|
||||
xtype: "tbsplit",
|
||||
@@ -353,11 +351,9 @@ Ext.onReady(function(){
|
||||
};
|
||||
exportProcessOption = granularExportProcessOption;
|
||||
} else {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
exportProcessOption = normalExportProcessOption;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
//End code export - exportGranular (handle)
|
||||
var proSelModel = new Ext.grid.CheckboxSelectionModel({
|
||||
listeners: {
|
||||
@@ -417,9 +413,7 @@ Ext.onReady(function(){
|
||||
,{header: _('ID_CANCELLED'), dataIndex: 'CASES_COUNT_CANCELLED', width: 50, align:'right', sortable: false}
|
||||
,{header: _('ID_TOTAL_CASES'), dataIndex: 'CASES_COUNT', width: 70, renderer:function(v){return "<b>"+v+"</b>";}, align:'right', sortable: false}
|
||||
,{header: _('ID_PRO_DEBUG'), dataIndex: 'PRO_DEBUG_LABEL', width: 30}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
,{header: _("ID_TYPE_PROCESS"), dataIndex: "PRO_TYPE_PROCESS", width: 70}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
,{header: _("ID_LAN_UPDATE_DATE"), dataIndex: "PRO_UPDATE_DATE_LABEL", width: 90}
|
||||
]
|
||||
}),
|
||||
@@ -515,7 +509,7 @@ Ext.onReady(function(){
|
||||
var activator = Ext.getCmp('activator');
|
||||
|
||||
activator.setDisabled(false);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
if(rowSelected.data.PROJECT_TYPE === 'bpmn' && isGranularFeature){
|
||||
processesGrid.getTopToolbar().remove('export');
|
||||
processesGrid.getTopToolbar().insert(6, granularExportProcessOption);
|
||||
@@ -525,7 +519,7 @@ Ext.onReady(function(){
|
||||
processesGrid.getTopToolbar().insert(6, normalExportProcessOption);
|
||||
processesGrid.getTopToolbar().doLayout();
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
Ext.ComponentMgr.get("export").setDisabled(false);
|
||||
|
||||
if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){
|
||||
@@ -583,7 +577,6 @@ Ext.onReady(function(){
|
||||
function onMessageContextMenu(grid, rowIndex, e) {
|
||||
e.stopEvent();
|
||||
var coords = e.getXY();
|
||||
/*----------------------------------********---------------------------------*/
|
||||
var rowSelected = grid.getStore().getAt(rowIndex);
|
||||
if(rowSelected.data.PROJECT_TYPE === 'bpmn' && isGranularFeature) {
|
||||
messageContextMenu.remove('export-menu');
|
||||
@@ -592,7 +585,6 @@ Ext.onReady(function(){
|
||||
messageContextMenu.remove('export-menu');
|
||||
messageContextMenu.addItem(normalMenuExportOption);
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
messageContextMenu.showAt([coords[0], coords[1]]);
|
||||
}
|
||||
//code export - exportGranular (handler)
|
||||
@@ -607,7 +599,6 @@ Ext.onReady(function(){
|
||||
}
|
||||
};
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (isGranularFeature) {
|
||||
granularMenuExportOption = {
|
||||
id: 'export-menu',
|
||||
@@ -636,11 +627,8 @@ Ext.onReady(function(){
|
||||
};
|
||||
menuExportOption = granularMenuExportOption;
|
||||
} else {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
menuExportOption = normalMenuExportOption;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
//End code export - exportGranular (handler)
|
||||
|
||||
var arrayContextMenuOption = [
|
||||
@@ -2096,9 +2084,7 @@ importProcess = function()
|
||||
switch (fileExtension) {
|
||||
case "pm":
|
||||
case "pmx":
|
||||
/*----------------------------------********---------------------------------*/
|
||||
case "pmx2":
|
||||
/*----------------------------------********---------------------------------*/
|
||||
var uploader = Ext.getCmp("uploader");
|
||||
|
||||
if (uploader.getForm().isValid()) {
|
||||
|
||||
Reference in New Issue
Block a user