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

raeburn raeburn at source.lon-capa.org
Mon Aug 12 14:02:25 EDT 2019


raeburn		Mon Aug 12 18:02:25 2019 EDT

  Modified files:              
    /loncom/interface	lonsupportreq.pm 
  Log:
  - Need for javascript files depends on session status.
  
  
Index: loncom/interface/lonsupportreq.pm
diff -u loncom/interface/lonsupportreq.pm:1.98 loncom/interface/lonsupportreq.pm:1.99
--- loncom/interface/lonsupportreq.pm:1.98	Sun Aug 11 15:15:40 2019
+++ loncom/interface/lonsupportreq.pm	Mon Aug 12 18:02:25 2019
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Helpdesk request form
 #
-# $Id: lonsupportreq.pm,v 1.98 2019/08/11 15:15:40 raeburn Exp $
+# $Id: lonsupportreq.pm,v 1.99 2019/08/12 18:02:25 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -319,9 +319,10 @@
 $loaditems
 // ]]>
 </script>
-<script type="text/javascript" src="/res/adm/includes/file_upload.js"></script>
 ENDJS
-    if ($recaptcha_version >=2) {
+    if ($knownuser) {
+        $js .="\n".'<script type="text/javascript" src="/res/adm/includes/file_upload.js"></script>';
+    } elsif ($recaptcha_version >=2) {
         $js.= "\n".'<script src="https://www.google.com/recaptcha/api.js"></script>'."\n";
     }
     my %add_entries = (




More information about the LON-CAPA-cvs mailing list