Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-36736 course: Availability information will use hide class for hi…

…dding
  • Loading branch information...
commit c1ac572d9cb2785a138fb9a52467966e7d2cd265 1 parent 6548ce0
@rajeshtaneja rajeshtaneja authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  course/lib.php
  2. +2 −2 course/yui/toolboxes/toolboxes.js
View
2  course/lib.php
@@ -1734,7 +1734,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
} else if ($canviewhidden && !empty($CFG->enableavailability)) {
$visibilityclass = '';
if (!$mod->visible) {
- $visibilityclass = 'accesshide';
+ $visibilityclass = 'hide';
}
$ci = new condition_info($mod);
$fullinfo = $ci->get_full_information();
View
4 course/yui/toolboxes/toolboxes.js
@@ -37,7 +37,7 @@ YUI.add('moodle-course-toolboxes', function(Y) {
CONDITIONALHIDDEN : 'conditionalhidden',
AVAILABILITYINFODIV : 'div.availabilityinfo',
SHOWCLASS : 'editing_show',
- ACCESSHIDECLASS : 'accesshide'
+ HIDECLASS : 'hide'
};
/**
@@ -99,7 +99,7 @@ YUI.add('moodle-course-toolboxes', function(Y) {
var availabilityinfo = element.one(CSS.AVAILABILITYINFODIV);
if (availabilityinfo) {
- availabilityinfo.toggleClass(CSS.ACCESSHIDECLASS);
+ availabilityinfo.toggleClass(CSS.HIDECLASS);
}
return value;
},
Please sign in to comment.
Something went wrong with that request. Please try again.