Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-2918

The Javascript functions for expanding/collapsing all tabs fail to execute without errors.

    Details

    • Type: Bug Fix Bug Fix
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Development
    • Labels:
    • 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:
      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Chad Hagstrom
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Structure Helper Panel