[LON-CAPA-cvs] cvs: loncom /interface lonfeedback.pm

raeburn raeburn at source.lon-capa.org
Tue Jan 18 19:44:31 EST 2022


raeburn		Wed Jan 19 00:44:31 2022 EDT

  Modified files:              
    /loncom/interface	lonfeedback.pm 
  Log:
  - Default delay before closing window or reloading page is 2s.
  
  
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.389 loncom/interface/lonfeedback.pm:1.390
--- loncom/interface/lonfeedback.pm:1.389	Tue Jan 18 17:33:13 2022
+++ loncom/interface/lonfeedback.pm	Wed Jan 19 00:44:31 2022
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.389 2022/01/18 17:33:13 raeburn Exp $
+# $Id: lonfeedback.pm,v 1.390 2022/01/19 00:44:31 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2763,7 +2763,7 @@
   my $logo=&Apache::loncommon::lonhttpdurl('/adm/lonIcons/lonlogos.gif');
   my %parms=('only_body'   => 1);
   if ($delay !~ /^\d+(|\.\d+)$/) {
-      $delay = 0;
+      $delay = 2;
   }
   if ($env{'form.modal'}) {
       my $onload = 'document.forms.reldt.submit()';
@@ -4736,7 +4736,7 @@
 	  if ($options) {
 	      &mail_screen($r,$feedurl,$options,$symb,$attachmax{'text'});
 	  } else {
-	      &fail_redirect($r,$feedurl,1);
+	      &fail_redirect($r,$feedurl,2);
 	  }
 	  return OK;
       }




More information about the LON-CAPA-cvs mailing list