]> git.mjollnir.org Git - moodle.git/commitdiff
merged from 1.9 :: MDL-12221 :: Some enhancements to handle the changed boxes - work...
authorurs_hunkler <urs_hunkler>
Thu, 13 Dec 2007 20:25:24 +0000 (20:25 +0000)
committerurs_hunkler <urs_hunkler>
Thu, 13 Dec 2007 20:25:24 +0000 (20:25 +0000)
theme/custom_corners/header.html
theme/custom_corners/js/jquery.php
theme/custom_corners/user_styles.css

index 77459fce85b80d14fa4214f0bd60996ad530ede4..4a480463f5b7e95035b20aca1380857200dffdf2 100644 (file)
@@ -46,7 +46,7 @@
                 // exclude roles called from the admin area (courseid 1)
                 // include user roles for the Moodle user settings called
                 // from the start page
-                if (($COURSE->id > 1) || ($_GET['contextid'] == 30)) {
+                if (($COURSE->id > 1) || ($_GET['contextid'] == 30) || ($_GET['contextid'] == 61)) {
                     preg_match('/class="([^"]*)"/i', $bodytags, $classes);
                     $classlist = explode (' ', $classes[1]);
                     if (!in_array('nocoursepage', $classlist)) {
index 8aa9d378a9b23eefd6579251616882b6b65af7a8..2febdc32fbd0f9d15c1e8a3dea829a17c2176be3 100644 (file)
             
             // check for layouttabel and add haslayouttable class to body
             // remove nocoursepage class from body
-            var layoutTable = $('#layout-table');
+            var layoutTable = $('#layout-table #middle-column');
             
             if (layoutTable.length) {
                 $('body').addClass('haslayouttable');
                 $('body').removeClass('nocoursepage');
+            } else {
+                $('body').addClass('nolayouttable');
             }
         },
         
index 32a676db22a87ed1a557ba3fc0ea9ca58b8bc92c..75e3b11ba925d27850a8434201d90150782f376a 100644 (file)
@@ -1135,7 +1135,7 @@ body#course-user div.tabtree {
 }
 .tabrow0 div,
 .tabrow0 ul {
-  top: 2.1em;
+  top: 2em;
 }
 a.dimmed:link,
 a.dimmed:visited {