Pham Duy Dong created GTNPORTAL-2770:
----------------------------------------
Summary: Bug JS: happens when js file in module contains tab charecter at
header
Key: GTNPORTAL-2770
URL:
https://issues.jboss.org/browse/GTNPORTAL-2770
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.5.0.Final
Reporter: Pham Duy Dong
Priority: Minor
- Declare that js(ex: WCMUIPopupWindow.js) file in gatein-resources.xml
{code:xml}
...
<module>
<name>ecm-seo</name>
<as>ecmSeo</as>
<script>
<path>/javascript/eXo/webui/WCMUIPopupWindow.js</path>
</script>
<depends>
<module>jquery</module>
<as>gj</as>
</depends>
<depends>
<module>wcm-utils</module>
</depends>
<depends>
<module>common</module>
</depends>
<depends>
<module>uiForm</module>
</depends>
</module>
...
{code}
- Require it in groovy template file
- In a javascript file (ex: WCMUIPopupWindow.js):
If comment at top file contains tab character(\t) js bug happen
After remove tab, bug js also not happen anymore
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira