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 Assigned to: Carlin Rogers Priority: Minor Fix For: V1 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