This commit is contained in:
Dan Poltawski
2013-11-08 16:05:06 +08:00
5 changed files with 14 additions and 15 deletions
@@ -90,4 +90,14 @@ Feature: We can change the visibility of courses in the management interface.
# AJAX updates the visibility
And category in management listing should be visible "CAT1"
And course in management listing should be dimmed "C1"
And I toggle visibility of category "CAT1" in management listing
And I toggle visibility of category "CAT1" in management listing
And I toggle visibility of course "C1" in management listing
And I click on "Viewing Course categories and courses" "link"
And I click on "Courses" "link"
# Redirect
And I should see "Course 1" in the "#course-listing ul.ml" "css_element"
And I toggle visibility of course "C1" in management listing
# AJAX updates the visibility
And course in management listing should be dimmed "C1"
And I toggle visibility of course "C1" in management listing
And course in management listing should be visible "C1"
@@ -281,10 +281,6 @@ Console.prototype = {
if (!listing) {
return false;
}
if (!category) {
Y.log('Couldn\'t find the current category object.', 'warn', 'moodle-course-management');
return false;
}
listing.all('.listitem[data-id]').each(function(node){
this.registerCourse(new Course({
node : node,
File diff suppressed because one or more lines are too long
@@ -278,9 +278,6 @@ Console.prototype = {
if (!listing) {
return false;
}
if (!category) {
return false;
}
listing.all('.listitem[data-id]').each(function(node){
this.registerCourse(new Course({
node : node,
-4
View File
@@ -279,10 +279,6 @@ Console.prototype = {
if (!listing) {
return false;
}
if (!category) {
Y.log('Couldn\'t find the current category object.', 'warn', 'moodle-course-management');
return false;
}
listing.all('.listitem[data-id]').each(function(node){
this.registerCourse(new Course({
node : node,