From 42e5b744260da71935f21eeb224e0e6f6f1e3c9b Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Thu, 10 Jun 2010 03:00:04 +0000 Subject: [PATCH] gradebook MDL-22716 made the categories and items table usable on narrow screens --- grade/edit/tree/index.php | 2 ++ theme/standard/style/grade.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/grade/edit/tree/index.php b/grade/edit/tree/index.php index cae0a39c664..5b03715fb9f 100644 --- a/grade/edit/tree/index.php +++ b/grade/edit/tree/index.php @@ -105,9 +105,11 @@ if (!is_null($category) && !is_null($aggregationtype) && confirm_sesskey()) { if (!$grade_category = grade_category::fetch(array('id'=>$category, 'courseid'=>$courseid))) { print_error('invalidcategoryid'); } + $data->aggregation = $aggregationtype; grade_category::set_properties($grade_category, $data); $grade_category->update(); + grade_regrade_final_grades($courseid); } diff --git a/theme/standard/style/grade.css b/theme/standard/style/grade.css index 5a1847eec4e..d352f99ad23 100644 --- a/theme/standard/style/grade.css +++ b/theme/standard/style/grade.css @@ -17,7 +17,7 @@ td.grade div.overridden {background-color: #DDDDDD;} .path-grade-report-grader table#user-grades td.clickable {cursor: pointer;} .path-grade-edit-tree .moving {background-color: #E8EEF7;} -.path-grade-edit-tree .gradetreebox {width:70%;padding-bottom:15px;} +.path-grade-edit-tree .gradetreebox {width:70%;padding-bottom:15px;overflow-x:auto;overflow-y:hidden;} .path-grade-edit-scale .scale_options, #page-admin-grade-edit-scale-index .scale_options {font-size: 0.8em;}