--- loncom/interface/spreadsheet/lonspreadsheet.pm 2003/11/11 15:48:03 1.28 +++ loncom/interface/spreadsheet/lonspreadsheet.pm 2003/11/21 18:18:04 1.30 @@ -1,5 +1,5 @@ # -# $Id: lonspreadsheet.pm,v 1.28 2003/11/11 15:48:03 matthew Exp $ +# $Id: lonspreadsheet.pm,v 1.30 2003/11/21 18:18:04 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -227,9 +227,12 @@ sub handler { } my $courseid = $ENV{'request.course.id'}; # - # Do not allow students to continue if standard grading is in effect. + # Do not allow students to continue if standard or external grading is in + # effect. + # if ($ENV{'request.role'} =~ /^st\./) { - if ($ENV{'course.'.$courseid.'.grading'} eq 'standard') { + if ($ENV{'course.'.$courseid.'.grading'} eq 'standard' || + $ENV{'course.'.$courseid.'.grading'} eq 'external' ) { return HTTP_NOT_ACCEPTABLE; } } @@ -355,7 +358,7 @@ sub handler { editwin.close(); } - editwin = window.open($nothing,'CellEditWin','height=280,width=480,scrollbars=no,resizeable=yes,alwaysRaised=yes,dependent=yes',true); + editwin = window.open($nothing,'CellEditWin','height=280,width=480,scrollbars=no,resizable=yes,alwaysRaised=yes,dependent=yes',true); editwin.document.write(edit_text); } //-->