felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Parvulescu (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-3320) WebConsole UX: actions and status on bundle details don't update properly
Date Thu, 26 Jan 2012 15:10:38 GMT

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

Alex Parvulescu updated FELIX-3320:
-----------------------------------

    Attachment: FELIX-3320.patch

Proposed patch.

Replaced tr.find('td:eq(4)') with tr.children('td:eq(4)').
This handles the case where there are embedded tables and the selector can go awry.

Be kind to my flaky javascript :)
                
> WebConsole UX: actions and status on bundle details don't update properly
> -------------------------------------------------------------------------
>
>                 Key: FELIX-3320
>                 URL: https://issues.apache.org/jira/browse/FELIX-3320
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>            Reporter: Alex Parvulescu
>            Priority: Minor
>         Attachments: FELIX-3320.patch
>
>
> When looking at a bundle detail (both inline at /system/console/bundles and at the dedicated
page: /system/console/bundles/id) the actions related to the bundle don't properly update
the status and related actions.
> For example:
>  - I install a bundle 27, 
>  - I navigate to /system/console/bundles/27: Status 'Installed' and under Actions I can
start it (among other things)
>  - Start the bundle: 
>     - it doesn't update the proper 'Status' column. Instead the Status remains Installed
and the 'Version' label td gets replaced with the new status
>     - the 'Start' action doesn't get replaced with the 'Stop' action (this gets lost)
> This happens in bundles.js namely because of using find() instead of children() [0].

> Explanation: "The .find() and .children() methods are similar, except that the latter
only travels a single level down the DOM tree." (from the jquery api). This affects bundle
details page only, as it has an embedded table containing the details that is shown only on
this page, thus making the find() calls select wrong components.
> Will attach a patch shortly.
> [0] http://api.jquery.com/children/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message