mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge from HEAD into WCM-DEV2. Also fixes build breakage in
jndi-client and catalina-virtual that I introduced earlier. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3393 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
22
source/web/scripts/ajax/common.js
Normal file
22
source/web/scripts/ajax/common.js
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// Alfresco AJAX support library
|
||||
// Gavin Cornwell 14-07-2006
|
||||
//
|
||||
|
||||
/**
|
||||
* Default handler for errors
|
||||
*/
|
||||
function handleErrorDojo(type, errObj)
|
||||
{
|
||||
// remove the dojo prefix from the message
|
||||
var errorStart = "XMLHttpTransport Error: 500 ";
|
||||
var msg = errObj.message;
|
||||
|
||||
if (msg.indexOf(errorStart) != -1)
|
||||
{
|
||||
msg = msg.substring(errorStart.length);
|
||||
}
|
||||
|
||||
// TODO: Show a nicer error page, an alert will do for now!
|
||||
alert(msg);
|
||||
}
|
Reference in New Issue
Block a user