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)
{
if (winDesigner)
winDesigner.close();
params = typeof params == 'undefined' ? {type:'classicProject'} : params;
// 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,
'winDesigner'
);
Ext.getCmp('newProjectWin').close();
processesGrid.store.reload();
} else {
PMExt.error( _('ID_FAILED'), _('PROCESS_ALREADY_OPENED'));
}