Browse files

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

…dding
  • Loading branch information...
1 parent da26495 commit caeb7f90b0440c5b6c8b0e76b65617371b8aa19e @rajeshtaneja rajeshtaneja committed with danpoltawski Nov 21, 2012
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
@@ -1696,7 +1696,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;
},

0 comments on commit caeb7f9

Please sign in to comment.