Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.01
    • Component/s: framework
    • Labels:
      None
    • Sprint:
      Bug Crush Event - 21/2/2015, Community Day 3 - 2016

      Description

      We have many occurrence of selectAll, toggleAll abd checkToggle function calling in ftls. Example:

      // For selecting all the child checkboxes
      <input type="checkbox" name="selectAll" value="Y" onclick="javascript:toggleAll(this, '${selectAllFormName}');"/>
      
      // For selecting the child checkboxes and parent (if all child boxes is selected)
      <input type="checkbox" name="_rowSubmit_o_${rowCount}" value="Y" onclick="javascript:checkToggle(this, '${selectAllFormName}');"/>
      
      // For selecting all the child checkboxes if parent checbox is selected on page load.
      <script language="JavaScript" type="text/javascript">selectAll('selectAllForm');</script>
      

      Above all functionality should be replaced using one generic utility of selectAll. Example:

      // One class "selectAll" on parent checkbox will handle all above cases.
      <input type="checkbox" name="selectAll" value="Y" class="selectAll"/>
      

        Attachments

        1. OFBIZ-7720.patch
          4 kB
          Amardeep Singh Jhajj

          Activity

            People

            • Assignee:
              pandeypranay Pranay Pandey
              Reporter:
              amardeepsj Amardeep Singh Jhajj
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: