the update process title is sync now
This commit is contained in:
@@ -330,18 +330,31 @@ Ext.onReady ( function() {
|
|||||||
|
|
||||||
propertiesGrid.on('afteredit', function afterEdit(r) {
|
propertiesGrid.on('afteredit', function afterEdit(r) {
|
||||||
var node = Ext.getCmp('eastPanelTree').getSelectionModel().getSelectedNode();
|
var node = Ext.getCmp('eastPanelTree').getSelectionModel().getSelectedNode();
|
||||||
|
var UID;
|
||||||
|
var type;
|
||||||
|
|
||||||
|
if( node ) {
|
||||||
|
UID = node.attributes.id;
|
||||||
|
type = node.attributes.type;
|
||||||
|
} else {
|
||||||
|
UID = pro_uid;
|
||||||
|
type = 'process';
|
||||||
|
}
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
url: '../processes/ajaxListener',
|
url: '../processes/ajaxListener',
|
||||||
params: {
|
params: {
|
||||||
action : 'saveProperties',
|
action : 'saveProperties',
|
||||||
UID: node.attributes.id,
|
UID: UID,
|
||||||
type: node.attributes.type,
|
type: type,
|
||||||
property: r.record.data.name,
|
property: r.record.data.name,
|
||||||
value: r.value
|
value: r.value
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
//
|
if( type == 'process' && r.record.data.name == 'Title') {
|
||||||
|
pro_title = r.value;
|
||||||
|
Ext.getCmp('centerPanel').setTitle(_('ID_PROCESSMAP_TITLE') + ' - ' + pro_title);
|
||||||
|
Ext.getCmp('eastPanelTree').getNodeById(UID).setText(pro_title);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
failure: function(){
|
failure: function(){
|
||||||
Ext.Msg.alert ('Failure');
|
Ext.Msg.alert ('Failure');
|
||||||
@@ -453,10 +466,11 @@ Ext.onReady ( function() {
|
|||||||
|
|
||||||
var center= {
|
var center= {
|
||||||
region: 'center',
|
region: 'center',
|
||||||
|
id: 'centerPanel',
|
||||||
width:100,
|
width:100,
|
||||||
height:2000,
|
height:2000,
|
||||||
xtype : "iframepanel",
|
xtype : "iframepanel",
|
||||||
title : "BPMN Processmap - " + pro_title,
|
title : _('ID_PROCESSMAP_TITLE') + ' - ' + pro_title,
|
||||||
|
|
||||||
frameConfig:{name:'designerFrame', id:'designerFrame'},
|
frameConfig:{name:'designerFrame', id:'designerFrame'},
|
||||||
defaultSrc : 'designer?PRO_UID=' + pro_uid,
|
defaultSrc : 'designer?PRO_UID=' + pro_uid,
|
||||||
|
|||||||
Reference in New Issue
Block a user