[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /homework grades.pm

raeburn raeburn@source.lon-capa.org
Wed, 19 Aug 2009 19:29:50 -0000


raeburn		Wed Aug 19 19:29:50 2009 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/homework	grades.pm 
  Log:
  - Backport 1.579.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.574.2.2 loncom/homework/grades.pm:1.574.2.3
--- loncom/homework/grades.pm:1.574.2.2	Sat Jun  6 19:36:37 2009
+++ loncom/homework/grades.pm	Wed Aug 19 19:29:50 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.574.2.2 2009/06/06 19:36:37 raeburn Exp $
+# $Id: grades.pm,v 1.574.2.3 2009/08/19 19:29:50 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7709,15 +7709,17 @@
     my $syllabuslink = '<a href="javascript:ToSyllabus();">'.&mt('Syllabus').'</a>'.
                        ('&nbsp'x2).&mt('(shows course personnel)'); 
     my $default_form_data=&defaultFormData(&get_symb($r,1));
+    my $nofile_alert = &mt('Please use the browse button to select a file from your local directory.');
+    my $nocourseid_alert = &mt("Please use the 'Select Course' link to open a separate window where you can search for a course to which a file can be uploaded.");
     $r->print('
 <script type="text/javascript" language="javascript">
     function checkUpload(formname) {
 	if (formname.upfile.value == "") {
-	    alert("'.&mt('Please use the browse button to select a file from your local directory.').'");
+	    alert("'.$nofile_alert.'");
 	    return false;
 	}
         if (formname.courseid.value == "") {
-            alert("'.&mt('Please use the \"Select Course\" link to open a separate window where you can search for a course to which a file can be uploaded.').'");
+            alert("'.$nocourseid_alert.'");
             return false;
         }
 	formname.submit();