Skip to content

Commit a02b319

Browse files
MDL-42451 installation: Allow enter key to proceed
1 parent 1a89704 commit a02b319

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
@@ -380,9 +380,9 @@ function install_print_footer($config, $reload=false) {
380380
global $CFG;
381381

382382
if ($config->stage > INSTALL_WELCOME) {
383-
$first = '<input type="submit" id="previousbutton" class="btn btn-secondary" name="previous" value="&laquo; '.s(get_string('previous')).'" />';
383+
$first = '<input type="submit" id="previousbutton" class="btn btn-secondary ml-auto" name="previous" value="&laquo; '.s(get_string('previous')).'" />';
384384
} else {
385-
$first = '<input type="submit" id="previousbutton" class="btn btn-secondary" name="next" value="'.s(get_string('reload')).'" />';
385+
$first = '<input type="submit" id="previousbutton" class="btn btn-secondary ml-auto" name="next" value="'.s(get_string('reload')).'" />';
386386
$first .= '<script type="text/javascript">
387387
//<![CDATA[
388388
var first = document.getElementById("previousbutton");
@@ -393,12 +393,12 @@ function install_print_footer($config, $reload=false) {
393393
}
394394

395395
if ($reload) {
396-
$next = '<input type="submit" id="nextbutton" class="btn btn-primary ml-1" name="next" value="'.s(get_string('reload')).'" />';
396+
$next = '<input type="submit" id="nextbutton" class="btn btn-primary ml-1 mr-auto" name="next" value="'.s(get_string('reload')).'" />';
397397
} else {
398-
$next = '<input type="submit" id="nextbutton" class="btn btn-primary ml-1" name="next" value="'.s(get_string('next')).' &raquo;" />';
398+
$next = '<input type="submit" id="nextbutton" class="btn btn-primary ml-1 mr-auto" name="next" value="'.s(get_string('next')).' &raquo;" />';
399399
}
400400

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

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

0 commit comments

Comments
 (0)