Added Edit link for loading new processmap in processlist file...
This commit is contained in:
@@ -176,6 +176,11 @@ Ext.onReady(function(){
|
|||||||
iconCls: 'silk-add',
|
iconCls: 'silk-add',
|
||||||
icon: '/images/edit.gif',
|
icon: '/images/edit.gif',
|
||||||
handler: editProcess
|
handler: editProcess
|
||||||
|
},{
|
||||||
|
text:TRANSLATIONS.ID_EDIT,
|
||||||
|
iconCls: 'silk-add',
|
||||||
|
icon: '/images/edit.gif',
|
||||||
|
handler: editNewProcess
|
||||||
},{
|
},{
|
||||||
text:TRANSLATIONS.ID_STATUS,
|
text:TRANSLATIONS.ID_STATUS,
|
||||||
id:'activator',
|
id:'activator',
|
||||||
@@ -331,6 +336,23 @@ editProcess = function(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
editNewProcess = function(){
|
||||||
|
var rowSelected = processesGrid.getSelectionModel().getSelected();
|
||||||
|
if( rowSelected ) {
|
||||||
|
location.href = '../bpmn/processmap?PRO_UID='+rowSelected.data.PRO_UID+'&rand='+Math.random()
|
||||||
|
} else {
|
||||||
|
Ext.Msg.show({
|
||||||
|
title:'',
|
||||||
|
msg: TRANSLATIONS.ID_NO_SELECTION_WARNING,
|
||||||
|
buttons: Ext.Msg.INFO,
|
||||||
|
fn: function(){},
|
||||||
|
animEl: 'elId',
|
||||||
|
icon: Ext.MessageBox.INFO,
|
||||||
|
buttons: Ext.MessageBox.OK
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
deleteProcess = function(){
|
deleteProcess = function(){
|
||||||
//var rowSelected = processesGrid.getSelectionModel().getSelected();
|
//var rowSelected = processesGrid.getSelectionModel().getSelected();
|
||||||
var rows = processesGrid.getSelectionModel().getSelections();
|
var rows = processesGrid.getSelectionModel().getSelections();
|
||||||
|
|||||||
Reference in New Issue
Block a user