mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Progress on search user component
This commit is contained in:
@ -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
|
||||
|
19
assets/js/common/helpers.js
Normal file
19
assets/js/common/helpers.js
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user