<div dir="ltr">Hi,<div><br></div><div>I'm trying to add one javascript file to the headers. When this script (ZeroClipboard) is added in the body or before end of </body> i can see that it is present in source view but the script doesnt work. Even when i add this script using vtiger function getHeaderScripts() it isnt working. I get:</div>
<div><br></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><b>Uncaught ReferenceError: ZeroClipboard is not defined</b></span><br></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><br>
</span></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">It must be conflicting with other scripts. When I add this script manually to Header.tpl in vtiger folder or copy Header.tpl file and use it in my module everything works great...</span></div>
<div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><br></span></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">But that is over the top sollution :/ Would be great if there would be a way to add script to headers without changing system files.</span></div>
<div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><br></span></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">By the way I'm using this script related module view too, and here it only works if Header.tpl in vtiger folder is changed, related modules don't see Header.tpl inside my module...</span></div>
<div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><br></span></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">Thanks in advance for replies.</span></div>
</div>