diff --git a/nuxeo-platform-webapp/src/main/resources/nuxeo.war/incl/includes.xhtml b/nuxeo-platform-webapp/src/main/resources/nuxeo.war/incl/includes.xhtml --- a/nuxeo-platform-webapp/src/main/resources/nuxeo.war/incl/includes.xhtml +++ b/nuxeo-platform-webapp/src/main/resources/nuxeo.war/incl/includes.xhtml @@ -167,7 +167,7 @@ function transfertCanceled() if ( typeof(ECMPluginCancelCallBack)=="function" ) ECMPluginCancelCallBack(result); else if ( typeof(ECMPluginCancelCallBack)=="string" ) - eval( ECMPluginCancelCallBack + "('" + result + "')"); + eval( ECMPluginCancelCallBack + "(\"" + result + "\")"); } } @@ -244,7 +244,7 @@ function FileAddedCallback(result) if ( typeof(ECMPluginCallBack)=="function" ) ECMPluginCallBack(result); else if ( typeof(ECMPluginCallBack)=="string" ) - eval( ECMPluginCallBack + "('" + result + "')"); + eval( ECMPluginCallBack + "(\"" + result + "\")"); } } else{ @@ -265,7 +265,7 @@ function FolderAddedCallback(result) if ( typeof(ECMPluginCallBack)=="function" ) ECMPluginCallBack(result); else if ( typeof(ECMPluginCallBack)=="string" ) - eval( ECMPluginCallBack + "('" + result + "')"); + eval( ECMPluginCallBack + "(\"" + result + "\")"); } } else{ alert("undefined result in FolderAddedCallback") @@ -283,7 +283,7 @@ function CanWriteCallback(result) if ( typeof(ECMPluginCallBack)=="function" ) ECMPluginCallBack(result); else if ( typeof(ECMPluginCallBack)=="string" ) - eval( ECMPluginCallBack + "('" + result + "')"); + eval( ECMPluginCallBack + "(\"" + result + "\")"); } } else{ alert("undefined result in CanWriteCallback") @@ -302,7 +302,7 @@ function LogInBrowser(text) eval( 'external.LogText(' + text + ')' ); } catch(e) - {} + { alert(e);} } if (window.addEventListener)