BUG 7190 El boton Save no esta desplegando ningun mensaje SOLVED

- Despues de presionar el boton "Save" en las propiedades de las tareas simplemente se estaba cerrando el panel
- Ahora despues de cerrar el panel se muestra un mensaje de confirmacióe que los cambios fuerin guardados con exito
This commit is contained in:
Julio Cesar Laura
2012-03-09 16:00:48 -04:00
parent 76d62f0ec9
commit 0ef9fd6b9b
3 changed files with 19 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ var re2 = /@amp@/g;
var saveDataTaskTemporal = function(iForm)
{
oAux = getField('TAS_UID');
if (oAux)
{
switch (iLastTab)
@@ -44,7 +44,7 @@ var saveDataTaskTemporal = function(iForm)
{
oTaskData.TAS_ASSIGN_TYPE = 'EVALUATE';
}
/* this feature is temporarily disabled
/* this feature is temporarily disabled
if (getField('TAS_ASSIGN_TYPE][STATIC_MI').checked)
{
oTaskData.TAS_ASSIGN_TYPE = 'STATIC_MI';
@@ -145,7 +145,7 @@ var saveTaskData = function(oForm, iForm, iType)
return false;
}
oTaskData.TAS_UID = getField('TAS_UID').value;
/* while (oTaskData.TAS_TITLE.charAt(0)==' '){
/* while (oTaskData.TAS_TITLE.charAt(0)==' '){
oTaskData.TAS_TITLE = oTaskData.TAS_TITLE.substring(1,oTaskData.TAS_TITLE.length) ;
} */
oTaskData.TAS_TITLE=oTaskData.TAS_TITLE.trim();
@@ -171,7 +171,14 @@ var saveTaskData = function(oForm, iForm, iType)
oTaskData.TAS_START = (oTaskData.TAS_START == 'TRUE' ? true : false);
Pm.data.render.setTaskINI({task: oTaskData.TAS_UID, value: oTaskData.TAS_START});
}
try {
new leimnud.module.app.info().make( {
label: changesSavedLabel
});
}
catch (e) {
// No show confirmation
}
Pm.tmp.propertiesPanel.remove();
};
@@ -182,8 +189,8 @@ var showTriggers = function(sStep, sType)
async : false,
method: 'POST',
args : 'action=showTriggers&sProcess=' + Pm.options.uid + '&sStep=' + sStep + '&sType=' + sType
});
});
oRPC.make();
document.getElementById('triggersSpan_' + sStep + '_' + sType).innerHTML = oRPC.xmlhttp.responseText;

View File

@@ -22,7 +22,7 @@
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
global $RBAC;
global $RBAC;
$access = $RBAC->userCanAccess('PM_FACTORY');
if( $access != 1 ){
switch ($access)
@@ -41,9 +41,9 @@ if( $access != 1 ){
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
G::header('location: ../login/login');
die;
break;
break;
}
}
}
$processUID = $_GET['PRO_UID'];
//if ( isset($_SESSION['PROCESSMAP']) && $_SESSION['PROCESSMAP'] == 'BPMN' ) {
@@ -90,7 +90,8 @@ $oHeadPublisher->addScriptCode( '
images_dir :"/jscore/processmap/core/images/"
}
Pm.make();
});' );
});
var changesSavedLabel = "' . addslashes(G::LoadTranslation('ID_SAVED_SUCCESSFULLY')) . '";' );
if( ! isset($_GET['raw']) )
G::RenderPage('publish', 'green-submenu');