Skip to content

Commit

Permalink
Merge branch 'MDL-58699-33' of git://github.com/damyon/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_33_STABLE
  • Loading branch information
David Monllao committed Nov 8, 2017
2 parents a43556a + d2d3a57 commit f47f92c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions mod/quiz/renderer.php
Expand Up @@ -840,6 +840,9 @@ public function start_attempt_button($buttontext, moodle_url $url,

$button = new single_button($url, $buttontext);
$button->class .= ' quizstartbuttondiv';
if ($popuprequired) {
$button->class .= ' quizsecuremoderequired';
}

$popupjsoptions = null;
if ($popuprequired && $popupoptions) {
Expand Down
6 changes: 4 additions & 2 deletions mod/quiz/styles.css
Expand Up @@ -360,11 +360,13 @@ table.quizattemptsummary .noreviewmessage {
font-size: 0.7em;
}

.quizstartbuttondiv.quizsecuremoderequired input {
.quizstartbuttondiv.quizsecuremoderequired input,
.quizstartbuttondiv.quizsecuremoderequired button {
display: none;
}

.jsenabled .quizstartbuttondiv.quizsecuremoderequired input {
.jsenabled .quizstartbuttondiv.quizsecuremoderequired input,
.jsenabled .quizstartbuttondiv.quizsecuremoderequired button {
display: inline;
}

Expand Down

0 comments on commit f47f92c

Please sign in to comment.