From 65fd840be8268b496e7231e5ab19e3efcfc311d7 Mon Sep 17 00:00:00 2001 From: Mathew May <mathewm@hotmail.co.nz> Date: Tue, 25 Jun 2019 13:26:15 +0800 Subject: [PATCH] MDL-42451 installation: Allow enter key to proceed --- lib/installlib.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/installlib.php b/lib/installlib.php index 48bcdef79a3..e8a4bc988ca 100644 --- a/lib/installlib.php +++ b/lib/installlib.php @@ -380,9 +380,9 @@ function install_print_footer($config, $reload=false) { global $CFG; if ($config->stage > INSTALL_WELCOME) { - $first = '<input type="submit" id="previousbutton" class="btn btn-secondary" name="previous" value="« '.s(get_string('previous')).'" />'; + $first = '<input type="submit" id="previousbutton" class="btn btn-secondary flex-grow-0 ml-auto" name="previous" value="« '.s(get_string('previous')).'" />'; } else { - $first = '<input type="submit" id="previousbutton" class="btn btn-secondary" name="next" value="'.s(get_string('reload')).'" />'; + $first = '<input type="submit" id="previousbutton" class="btn btn-secondary flex-grow-0 ml-auto" name="next" value="'.s(get_string('reload')).'" />'; $first .= '<script type="text/javascript"> //<![CDATA[ var first = document.getElementById("previousbutton"); @@ -393,12 +393,12 @@ function install_print_footer($config, $reload=false) { } if ($reload) { - $next = '<input type="submit" id="nextbutton" class="btn btn-primary ml-1" name="next" value="'.s(get_string('reload')).'" />'; + $next = '<input type="submit" id="nextbutton" class="btn btn-primary ml-1 flex-grow-0 mr-auto" name="next" value="'.s(get_string('reload')).'" />'; } else { - $next = '<input type="submit" id="nextbutton" class="btn btn-primary ml-1" name="next" value="'.s(get_string('next')).' »" />'; + $next = '<input type="submit" id="nextbutton" class="btn btn-primary ml-1 flex-grow-0 mr-auto" name="next" value="'.s(get_string('next')).' »" />'; } - echo '</fieldset><fieldset id="nav_buttons" class="mb-3">'.$first.$next.'</fieldset>'; + echo '</fieldset><div id="nav_buttons" class="mb-3 btn-group w-100 flex-row-reverse">'.$next.$first.'</div>'; $homelink = '<div class="sitelink">'. '<a title="Moodle '. $CFG->target_release .'" href="http://docs.moodle.org/en/Administrator_documentation" onclick="this.target=\'_blank\'">'.