MDL-58986 mod_quiz: add CSS classes to buttons on comment page

This commit is contained in:
Mark Nelson 2017-05-18 16:49:01 +08:00
parent 17fb1d84a2
commit f3dc7a171a
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ echo $attemptobj->render_question_for_commenting($slot);
<div>
<div class="fitem fitem_actionbuttons fitem_fsubmit">
<fieldset class="felement fsubmit">
<input id="id_submitbutton" type="submit" name="submit" value="<?php
<input id="id_submitbutton" type="submit" name="submit" class="btn btn-primary" value="<?php
print_string('save', 'quiz'); ?>"/>
</fieldset>
</div>

View File

@ -37,7 +37,7 @@ M.mod_quiz.init_review_form = function(Y) {
M.mod_quiz.init_comment_popup = function(Y) {
// Add a close button to the window.
var closebutton = Y.Node.create('<input type="button" />');
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary" />');
closebutton.set('value', M.util.get_string('cancel', 'moodle'));
Y.one('#id_submitbutton').ancestor().append(closebutton);
Y.on('click', function() { window.close() }, closebutton);