Progress on search user component

This commit is contained in:
Pierre
2017-05-27 11:57:05 +02:00
parent 0effce56c2
commit 32cf8601f7
6 changed files with 82 additions and 9 deletions

View File

@ -57,7 +57,7 @@ ComunicWeb.common.api.makeAPIrequest = function(apiURI, params, requireLoginToke
//We check if we got any error
if(result.error){
//Log error
ComunicWeb.debug.logMessage("Got an error in a XHR request! " + result.toString());
ComunicWeb.debug.logMessage("Got an error in a XHR request! \n Request URL: "+requestURL+" \n Response : "+apiXHR.responseText);
}
//We can do the next step

View File

@ -0,0 +1,19 @@
/**
* Helpers
*
* @author Pierre HUBERT
*/
/**
* Returns the path pointing on an asset
*
* @param {String} assetURI Optionnal, the URI of the asset
* @return {String} The full URL path of the asset
*/
function path_assets(assetURI){
if(!assetURI)
assetURI = "";
return ComunicWeb.__config.assetsURL+assetURI;
}