N°637 Portal: Better feedback on exceptions and user session timeout on AJAX calls

SVN:trunk[4671]
This commit is contained in:
Guillaume Lajarige
2017-04-06 14:21:27 +00:00
parent 3773a88cc1
commit 1528d85f5f
15 changed files with 165 additions and 76 deletions

View File

@@ -451,6 +451,13 @@ EOF
sFormPath: '{$this->oField->GetFormPath()}',
sFieldId: '{$this->oField->GetId()}',
aObjectIdsToIgnore : aObjectIdsToIgnore
},
function(sResponseText, sStatus, oXHR){
// Hiding modal in case of error as the general AJAX error handler will display a message
if(sStatus === 'error')
{
oModalElem.modal('hide');
}
}
);
oModalElem.modal('show');