[jira] [Commented] (OFBIZ-1319) Split javascript files to have more generic ones includable in all screens, and the more specific ones included more locally

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

[jira] [Commented] (OFBIZ-1319) Split javascript files to have more generic ones includable in all screens, and the more specific ones included more locally

Nicolas Malin (Jira)

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

Amardeep Singh Jhajj commented on OFBIZ-1319:
---------------------------------------------

Yes Paul, I agreed on it and I replied on Dev list on this thread.

My reply was:

We can split based on modules for example- autocompleter module, etc in different files and it can be initialized from Util.js on page load (or any other event). Makes complete sense.

And some of small utility functions like toggling can be in Util.js itself and no need to create separate modules for it.

Further, Jacques has suggested to look on require.js possibility to manage modules. I am looking on it now.

Thanks.

> Split javascript files to have more generic ones includable in all screens, and the more specific ones included more locally
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1319
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1319
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> From a David's E. Jones comment on ML :
> We should split up javascript files to have the more generic ones includable in all screens, and the more specific ones (like the toggle* and selectAll* methods in there) into a file that can be included more locally.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)