--- loncom/interface/loncourserespicker.pm 2024/12/03 23:34:11 1.19 +++ loncom/interface/loncourserespicker.pm 2024/12/26 17:12:36 1.21 @@ -1,6 +1,6 @@ # The LearningOnline Network # -# $Id: loncourserespicker.pm,v 1.19 2024/12/03 23:34:11 raeburn Exp $ +# $Id: loncourserespicker.pm,v 1.21 2024/12/26 17:12:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -157,15 +157,16 @@ Output: $output is the HTML mark-up for Creates javascript functions for checking/unchecking all items, and for recursive checking triggered by checking a folder, or recursive -(upeards) unchecking of an item within a folder. +(upwards) unchecking of an item within a folder. -Inputs: 7. +Inputs: 9. - $startcount -- Starting offset of form element numbering for items - - $numcount -- Total numer of folders and resources in course. + - $numcount -- Total number of folders and resources in course. - $context -- Context in which resources are being displayed - (imsexport, examblock, dumpdocs or shorturls). + (imsexport, examblock, dumpdocs, shorturls, or + crsauthored). - $formname -- Name of form. @@ -175,6 +176,12 @@ Inputs: 7. - $checked_maps -- Reference to array of folders currently checked. + - $numhome -- Number of possible Authoring Spaces on this server + (context is dumpdocs or crsauthored). + + - $chkname -- Name of checkboxes used to indicate selection of folder + or resource. + Output: 1. Javascript (within tags. @@ -790,7 +797,7 @@ function checkResource(form,item) { } } -numitems = $numitems; +numitems = $startcount + $numitems; var parents = new Array(numitems); var nesting = new Array(numitems); var initial = new Array();