[LON-CAPA-cvs] cvs: rat / lonwrapper.pm

raeburn raeburn at source.lon-capa.org
Wed Nov 30 11:02:27 EST 2016


raeburn		Wed Nov 30 16:02:27 2016 EDT

  Modified files:              
    /rat	lonwrapper.pm 
  Log:
  - Set offset to 0 if no LON-CAPA menu present.
  
  
Index: rat/lonwrapper.pm
diff -u rat/lonwrapper.pm:1.54 rat/lonwrapper.pm:1.55
--- rat/lonwrapper.pm:1.54	Tue Nov 29 19:53:58 2016
+++ rat/lonwrapper.pm	Wed Nov 30 16:02:27 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Wrapper for external and binary files as standalone resources
 #
-# $Id: lonwrapper.pm,v 1.54 2016/11/29 19:53:58 damieng Exp $
+# $Id: lonwrapper.pm,v 1.55 2016/11/30 16:02:27 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -111,11 +111,16 @@
         $output .= $endpage;
         return $output;
     } else {
+        my $offset = 5;
+        &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['inhibitmenu']);
+        if ($env{'form.inhibitmenu'} eq 'yes') {
+            $offset = 0;
+        }
         my $script = &Apache::lonhtmlcommon::scripttag(<<SCRIPT);
         \$(document).ready( function() {
             \$(window).unbind('resize').resize(function(){
                 var header = null;
-                var offset = 5;
+                var offset = $offset;
                 var height = 0;
                 var hdrtop = 0;
                 if (\$('div.LC_head_subbox:first').length) {




More information about the LON-CAPA-cvs mailing list