MDL-36835 Assignment: Do not show javascript warning when toggling quickgrading
authorDamyon Wiese <damyon@moodle.com>
Fri, 30 Nov 2012 02:04:31 +0000 (10:04 +0800)
committerDamyon Wiese <damyon@moodle.com>
Fri, 30 Nov 2012 02:04:31 +0000 (10:04 +0800)
mod/assign/gradingoptionsform.php

index b24f4fa..8eb7ce3 100644 (file)
@@ -59,7 +59,7 @@ class mod_assign_grading_options_form extends moodleform {
 
         // quickgrading
         if ($instance['showquickgrading']) {
-            $mform->addElement('checkbox', 'quickgrading', get_string('quickgrading', 'assign'), '');
+            $mform->addElement('checkbox', 'quickgrading', get_string('quickgrading', 'assign'), '', $dirtyclass);
             $mform->addHelpButton('quickgrading', 'quickgrading', 'assign');
             $mform->setDefault('quickgrading', $instance['quickgrading']);
         }