[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

Similar issues:
KULRICE-3235The tabs on the RuleQuickLinks page vanish if they are expanded/collapsed when Javascript is disabled
KULRICE-11087KC POC: Expand/collapse all buttons
KULRICE-5269KRAD test views: expand/collapse should be links
KULRICE-8401Javascript error in the kitchen sink
KULRICE-4270validateDocTypeAndRefresh javascript function throws an error when oldDocTypeFieldName is undefined.
KULRICE-14078AFT Failures javascript error condition is not a function
KULRICE-4269expandAll collapseAll javascript throws error when not using tab indexes
KULRICE-2028Allow custom javascript functions to be associated with Action buttons. Execution is post automatic validation if any.
KULRICE-3183The show/hide tab buttons on the identityManagementRoleInquiry.do page cause the page to crash when Javascript is disabled
Rice Module:
Application Requirement:


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.

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 Sat Jun 06 12:59:54 CDT 2020 using JIRA 6.1.5#6160-sha1:a61a0fc278117a0da0ec9b89167b8f29b6afdab2.