Merge branch 'MDL-50945-master' of git://github.com/xow/moodle
authorDan Poltawski <dan@moodle.com>
Wed, 7 Oct 2015 11:14:47 +0000 (12:14 +0100)
committerDan Poltawski <dan@moodle.com>
Wed, 7 Oct 2015 11:14:47 +0000 (12:14 +0100)
course/edit_form.php

index 3faea92..6e0ed50 100644 (file)
@@ -310,10 +310,11 @@ class course_edit_form extends moodleform {
 
         // When two elements we need a group.
         $buttonarray = array();
+        $classarray = array('class' => 'form-submit');
         if ($returnto !== 0) {
-            $buttonarray[] = &$mform->createElement('submit', 'saveandreturn', get_string('savechangesandreturn'));
+            $buttonarray[] = &$mform->createElement('submit', 'saveandreturn', get_string('savechangesandreturn'), $classarray);
         }
-        $buttonarray[] = &$mform->createElement('submit', 'saveanddisplay', get_string('savechangesanddisplay'));
+        $buttonarray[] = &$mform->createElement('submit', 'saveanddisplay', get_string('savechangesanddisplay'), $classarray);
         $buttonarray[] = &$mform->createElement('cancel');
         $mform->addGroup($buttonarray, 'buttonar', '', array(' '), false);
         $mform->closeHeaderBefore('buttonar');