[jira] [Commented] (OFBIZ-11741) Headerize external script in multi-block html template

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-11741) Headerize external script in multi-block html template

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-11741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127249#comment-17127249 ]

ASF subversion and git services commented on OFBIZ-11741:
---------------------------------------------------------

Commit e3f6d1547fbd77d2c1625cfa152cce582b9ad825 in ofbiz-framework's branch refs/heads/trunk from James Yong
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=e3f6d15 ]

Improved: Headerize external script in multi-block html template (OFBIZ-11741)

Fix regression in scrumtests that resulted in NullPointerException.


> Headerize external script in multi-block html template
> ------------------------------------------------------
>
>                 Key: OFBIZ-11741
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11741
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: Upcoming Branch
>            Reporter: James Yong
>            Assignee: James Yong
>            Priority: Minor
>             Fix For: Trunk
>
>         Attachments: HtmlWidget.java.rej, OFBIZ-11741.patch, OFBIZ-11741.patch, OFBIZ-11741.patch
>
>
> Allow external scripts within the multi-block html template, to be rendered within the html head tag, when a new attribute data-import is set to “head” e.g.
> {code:xml}
> <script src="/common/js/jquery/plugins/jsTree/jquery.jstree.js" type="application/javascript" data-import="head"></script>
> {code}
> With the new feature we can define external scripts in the multi-block html template that is using the library, instead of setting in layoutSetting.javaScripts.
> This new feature helps with dependency management of Javascript and also reduce CSP errors.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)