You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Rich Feit (JIRA)" <de...@beehive.apache.org> on 2005/08/29 18:58:05 UTC

[jira] Closed: (BEEHIVE-879) collapse/expand tree button does not work for two tree portlets on one page - fix netui-tree.js

     [ http://issues.apache.org/jira/browse/BEEHIVE-879?page=all ]
     
Rich Feit closed BEEHIVE-879:
-----------------------------

    Assign To:     (was: Rich Feit)

Verified w/ automated test.

> collapse/expand tree button does not work for two tree portlets on one page - fix netui-tree.js
> -----------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-879
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-879
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: v1m1, V1Beta
>     Reporter: Carlin Rogers
>     Priority: Minor
>      Fix For: V1
>  Attachments: j879-patch.txt, j879-test-patch.txt
>
> When two portlets with trees are included on one page, collapse/expand tree 
> button does not work.
> There is a script tag written referring to netui-tree.js for every tree written out on 
> the page.  The netui-tree.js file defines the global netUI variable. The script is 
> getting included multiple times on a page, the netUI variable keeps getting 
> redefined.  The tree information is being stored in this variable, and then getting 
> wiped out the next time the file is included.
> In netui-tree.js we need to change 
> var netUI = new NetUI();
> to 
> if (!netUI) {
>     var netUI = new NetUI();
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira