--- loncom/imspackages/imsimport.pm 2009/04/23 09:40:46 1.29
+++ loncom/imspackages/imsimport.pm 2012/10/04 14:00:22 1.37
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: imsimport.pm,v 1.29 2009/04/23 09:40:46 bisitz Exp $
+# $Id: imsimport.pm,v 1.37 2012/10/04 14:00:22 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -43,7 +43,7 @@ use LONCAPA;
# ---------------------------------------------------------------- Jscript One
sub jscript_one {
- my ($fullpath,$jsref,$formname) = @_;
+ my ($fullpath,$formname) = @_;
my %body_layout = ('rightmargin' => "0",
'leftmargin' => "0",
@@ -66,7 +66,7 @@ sub jscript_one {
nndi => 'Enter the name of the new directory where you will store the contents of your IMS package.',
go => 'Go',
);
- $$jsref = <<"END_OF_ONE";
+ return <<"END_OF_ONE";
function verify() {
if ((document.forms.$formname.newdir.value == '') || (!document.forms.$formname.newdir.value)) {
alert('$lt{'ddir'}')
@@ -90,7 +90,7 @@ function createWin() {
newWindow = window.open("","CreateDir","HEIGHT=400,WIDTH=750,scrollbars=yes")
newWindow.document.open()
newWindow.document.write('$start_page')
- newWindow.document.write("\\n\\n")
+ newWindow.document.write("\\n
\\n")
newWindow.document.write("
\\n") newWindow.document.write(" | $lt{'loca'} $fullpath$lt{'newd'} |