[KULRICE-2918] The Javascript functions for expanding/collapsing all tabs fail to execute without errors. Created: 26/Mar/09  Updated: 16/Jan/15

Status: Open
Project: Kuali Rice Development
Component/s: Development
Affects Version/s: None
Fix Version/s: Backlog

Type: Bug Fix Priority: Minor
Reporter: Chad Hagstrom Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Old
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Rice Module:
KNS
Application Requirement:
Rice

 Description   

In core.js, there are two functions called "expandAllTab" and "collapseAllTab" that are responsible for handling clicks on the "expand all" and "collapse all" buttons. They rely on two other functions in core.js called "showTab" and "hideTab", which adjust the state of a single tab. The two latter functions rely on the existence of HTML page elements with names or ids of "tab-[tabKey]div", "tabStates([tabKey])", and "tag[tabKey]imageToggle", where [tabKey] is some text key used for identifying the HTML elements related to each tab. By viewing the source of a page with tabs on it (like an inquiry page), it can be seen that the buttons for showing/hiding an individual tab will pass in a string value to the "toggleTab" function in core.js, which then calls either "showTab" or "hideTab". However, the "expandAllTab" and "collapseAllTab" functions pass in numeric values to "showTab" and "hideTab" instead, which generates a Javascript error (since elements like "tab[number]-div" do not exist on the page) and hence forces the expand/collapse operation to be handled on the server side.



 Comments   
Comment by Eric Westfall [ 12/May/09 ]

Since the screen still functions despite this issue (and because I suspect this has been an issue for a long time) moving to 1.1

Generated at Fri Sep 25 18:36:25 CDT 2020 using JIRA 7.0.11#70121-sha1:19d24976997c1d95f06f3e327e087be0b71f28d4.