Merged in gproly/processmaker/PM-1366 (pull request #1447)

PM-1366
This commit is contained in:
Julio Cesar Laura Avendaño
2015-02-17 22:54:07 -04:00

View File

@@ -476,6 +476,8 @@ Ext.onReady(function(){
function newProcess(params) function newProcess(params)
{ {
if (winDesigner)
winDesigner.close();
params = typeof params == 'undefined' ? {type:'classicProject'} : params; params = typeof params == 'undefined' ? {type:'classicProject'} : params;
// TODO this variable have hardcoded labels, it must be changed on the future // TODO this variable have hardcoded labels, it must be changed on the future
@@ -589,6 +591,8 @@ function saveProcess()
"../designer?prj_uid="+resp.result.PRO_UID, "../designer?prj_uid="+resp.result.PRO_UID,
'winDesigner' 'winDesigner'
); );
Ext.getCmp('newProjectWin').close();
processesGrid.store.reload();
} else { } else {
PMExt.error( _('ID_FAILED'), _('PROCESS_ALREADY_OPENED')); PMExt.error( _('ID_FAILED'), _('PROCESS_ALREADY_OPENED'));
} }