Details
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"/>