Skip to content

Commit 28a2759

Browse files
MDL-42451 installation: Allow enter key to proceed
1 parent 325b025 commit 28a2759

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/installlib.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ function install_print_footer($config, $reload=false) {
385385
global $CFG;
386386

387387
if ($config->stage > INSTALL_WELCOME) {
388-
$first = '<input type="submit" id="previousbutton" name="previous" value="&laquo; '.s(get_string('previous')).'" />';
388+
$first = '<input type="submit" id="previousbutton" class="btn btn-secondary ml-auto" name="previous" value="&laquo; '.s(get_string('previous')).'" />';
389389
} else {
390-
$first = '<input type="submit" id="previousbutton" name="next" value="'.s(get_string('reload')).'" />';
390+
$first = '<input type="submit" id="previousbutton" class="btn btn-secondary ml-auto" name="next" value="'.s(get_string('reload')).'" />';
391391
$first .= '<script type="text/javascript">
392392
//<![CDATA[
393393
var first = document.getElementById("previousbutton");
@@ -398,12 +398,12 @@ function install_print_footer($config, $reload=false) {
398398
}
399399

400400
if ($reload) {
401-
$next = '<input type="submit" id="nextbutton" class="btn btn-primary" name="next" value="'.s(get_string('reload')).'" />';
401+
$next = '<input type="submit" id="nextbutton" class="btn btn-primary ml-1 mr-auto" name="next" value="'.s(get_string('reload')).'" />';
402402
} else {
403-
$next = '<input type="submit" id="nextbutton" class="btn btn-primary" name="next" value="'.s(get_string('next')).' &raquo;" />';
403+
$next = '<input type="submit" id="nextbutton" class="btn btn-primary ml-1 mr-auto" name="next" value="'.s(get_string('next')).' &raquo;" />';
404404
}
405405

406-
echo '</fieldset><fieldset id="nav_buttons">'.$first.$next.'</fieldset>';
406+
echo '</fieldset><div id="nav_buttons" class="mb-3 btn-group w-100 flex-row-reverse">'.$next.$first.'</div>';
407407

408408
$homelink = '<div class="sitelink">'.
409409
'<a title="Moodle '. $CFG->target_release .'" href="http://docs.moodle.org/en/Administrator_documentation" onclick="this.target=\'_blank\'">'.

0 commit comments

Comments
 (0)