mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
merged from 1.9 :: MDL-12221 :: Some enhancements to handle the changed boxes - work in progress.
This commit is contained in:
parent
f287947552
commit
67a6e17071
@ -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)) {
|
||||
|
@ -17,11 +17,13 @@
|
||||
|
||||
// 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');
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -1135,7 +1135,7 @@ body#course-user div.tabtree {
|
||||
}
|
||||
.tabrow0 div,
|
||||
.tabrow0 ul {
|
||||
top: 2.1em;
|
||||
top: 2em;
|
||||
}
|
||||
a.dimmed:link,
|
||||
a.dimmed:visited {
|
||||
|
Loading…
x
Reference in New Issue
Block a user