[jira] [Updated] (OFBIZ-9843) Replace Inline js with External js in renderDisplayField macro

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

[jira] [Updated] (OFBIZ-9843) Replace Inline js with External js in renderDisplayField macro

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-9843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aditya Sharma updated OFBIZ-9843:
---------------------------------
    Attachment: OFBIZ-9843.patch

Replaced inline js from renderDisplayField macro to external js in OfbizUtils.js
Done following:
Used custom data attributes: data-inplace-editor-url and data-inplace-editor-params in macro to pass data
Used attribute selector to find elements for adding inplace-editor

Steps to verify:
Name field of Ajax Examples uses in place editor. It can be clicked and edited.
https://localhost:8443/example/control/authview/findExampleAjax


> Replace Inline js with External js in renderDisplayField macro
> --------------------------------------------------------------
>
>                 Key: OFBIZ-9843
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9843
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Aditya Sharma
>            Assignee: Aditya Sharma
>            Priority: Minor
>         Attachments: OFBIZ-9843.patch
>
>
> Replace inline code for ajaxInPlaceEditDisplayField in renderDisplayField macro with external code in ofbizutil.js



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)