Customers portal : Added GetAbsoluteAppRoot() JS function to portal.

SVN:trunk[4214]
This commit is contained in:
Guillaume Lajarige
2016-06-15 12:23:38 +00:00
parent e6fefcc361
commit 5b9d2182dd

View File

@@ -301,6 +301,10 @@
{% block pPageLiveScripts %}
<script type="text/javascript">
var GetAbsoluteUrlAppRoot = function()
{
return '{{ app['combodo.absolute_url'] }}';
};
var addParameterToUrl = function(sUrl, sParamName, sParamValue)
{
sUrl += (sUrl.split('?')[1] ? '&':'?') + sParamName + '=' + sParamValue;