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

raeburn raeburn at source.lon-capa.org
Tue Apr 7 10:08:24 EDT 2015


raeburn		Tue Apr  7 14:08:24 2015 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - Bug 6771 
    Display of alert about switching user's session to another server now 
    delayed until $(document).ready. 
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1213 loncom/interface/loncommon.pm:1.1214
--- loncom/interface/loncommon.pm:1.1213	Tue Apr  7 13:44:25 2015
+++ loncom/interface/loncommon.pm	Tue Apr  7 14:08:24 2015
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1213 2015/04/07 13:44:25 raeburn Exp $
+# $Id: loncommon.pm,v 1.1214 2015/04/07 14:08:24 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7778,14 +7778,14 @@
         window.location.href="$newurl";
     }
 }
-window.alert('$msg');
-if ($disable_submit) {
-    \$(document).ready(function () {
+\$(document).ready(function () {
+    window.alert('$msg');
+    if ($disable_submit) {
         \$(".LC_hwk_submit").prop("disabled", true);
         \$( ".LC_textline" ).prop( "readonly", "readonly");
-    });
-}
-setTimeout('LC_Offload_Now()', $timeout);
+    }
+    setTimeout('LC_Offload_Now()', $timeout);
+});
 </script>
 OFFLOAD
                             }




More information about the LON-CAPA-cvs mailing list