--- loncom/publisher/lonpubdir.pm 2005/07/12 14:56:36 1.85 +++ loncom/publisher/lonpubdir.pm 2005/07/14 21:31:34 1.88 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Directory Lister # -# $Id: lonpubdir.pm,v 1.85 2005/07/12 14:56:36 albertel Exp $ +# $Id: lonpubdir.pm,v 1.88 2005/07/14 21:31:34 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -233,6 +233,11 @@ parent.lastknownpriv='/~$uname$thisdisfn document.printdir.postdata.value=theform.filename.value document.printdir.submit(); } + if (theform.dirtask.options[theform.dirtask.selectedIndex].value == "delete") { + var delform = document.delresource + delform.filename.value = theform.filename.value + delform.submit() + } } function checkUpload(theform) { @@ -259,6 +264,11 @@ parent.lastknownpriv='/~$uname$thisdisfn theform.postdata.value = theform.filename.value theform.submit() } + if (theform.diraction.options[theform.diraction.selectedIndex].value == "delete") { + var delform = document.delresource + delform.filename.value = theform.filename.value + delform.submit() + } return } function SetResChoice(theform) { @@ -325,8 +335,8 @@ sub dircontrols { mcdi => 'Must create new subdirectory inside a directory', pubr => 'Publish this Resource', pubd => 'Publish this Directory', + dedr => 'Delete Directory', rtrv => 'Retrieve Old Version', - pubs => 'Publish with Subdirectories', list => 'List Directory', uplo => 'Upload file', dele => 'Delete', @@ -366,6 +376,7 @@ sub dircontrols { + @@ -517,11 +528,11 @@ sub putdirectory { ''. ''. ''. - ''. ''. ''. + ''. ''. - ''. + ''. ''. ''. ''; @@ -529,9 +540,9 @@ sub putdirectory { } $r->print('