BUG 11979: "Cambios en el skin, la fecha en el mensaje de bienvenida en la esquina superior..."

Sol  Adding time in the format string + update the entire page, caused the user & datetime are been called in the main request.
This commit is contained in:
ralpheav
2013-05-23 16:45:38 -04:00
parent c28580e1a7
commit 19a8c37718
2 changed files with 11 additions and 4 deletions

View File

@@ -421,7 +421,7 @@ class SkinEngine
G::LoadClass( "configuration" );
$conf = new Configurations();
if (defined('SYS_SYS') && $conf->exists("ENVIRONMENT_SETTINGS")) {
$smarty->assign('udate', $conf->getSystemDate(date('Y-m-d')));
$smarty->assign('udate', $conf->getSystemDate(date('Y-m-d H:i:s')));
} else {
$smarty->assign('udate', G::getformatedDate(date('Y-m-d'), 'M d, yyyy', SYS_LANG));
}
@@ -725,7 +725,7 @@ class SkinEngine
G::LoadClass( "configuration" );
$conf = new Configurations();
if ( defined('SYS_SYS') && $conf->exists("ENVIRONMENT_SETTINGS")) {
$smarty->assign('udate', $conf->getSystemDate(date('Y-m-d')));
$smarty->assign('udate', $conf->getSystemDate(date('Y-m-d H:i:s')));
} else {
$smarty->assign('udate', G::getformatedDate(date('Y-m-d'), 'M d, yyyy', SYS_LANG));
}

View File

@@ -274,8 +274,15 @@ Ext.onReady(function() {
waitMsg : _('ID_SAVING_ENVIRONMENT_SETTINGS')+'...',
timeout : 36000,
success : function(res, req) {
PMExt.notify(_('ID_PM_ENV_SETTINGS_TITLE'), req.result.msg);
saveButton.disable();
PMExt.notify(_('ID_PM_ENV_SETTINGS_TITLE'), req.result.msg);
saveButton.disable();
currentLocation = parent.parent.location.href;
frame = parent.location.href;
settingsPage = location.href;
location = settingsPage;
parent.location = frame;
parent.parent.location = currentLocation;
}
});
}