misc: fix portal agent title/url with data from __services.js if set (#11397)
This commit is contained in:
parent
5b03b9f74b
commit
ead35c7bf8
|
@ -13,6 +13,8 @@ $(function() {
|
|||
var portal_agent_url = decodeURIComponent(readCookie('publik_portal_agent_url') || '');
|
||||
var portal_agent_title = decodeURIComponent(readCookie('publik_portal_agent_title') || '');
|
||||
if (portal_agent_url && portal_agent_title) {
|
||||
if (PUBLIK_PORTAL_AGENT_TITLE) portal_agent_title = PUBLIK_PORTAL_AGENT_TITLE;
|
||||
if (PUBLIK_PORTAL_AGENT_URL) portal_agent_url = PUBLIK_PORTAL_AGENT_URL;
|
||||
$('<a id="publik-portal-agent" href="' + portal_agent_url + '">' +
|
||||
portal_agent_title + '</a>').appendTo('body');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue