Skip to content

Commit

Permalink
Fixes HTML that prevents seeing actions buttons
Browse files Browse the repository at this point in the history
in classic theme
  • Loading branch information
Juan Carlos Rodríguez-del-Pino committed Oct 4, 2022
1 parent adb4e36 commit 91d2df1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions forms/overrides.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ function vpl_get_overrideactions($id, $overrideid, $editing) {
global $OUTPUT, $PAGE;
if ($editing == $overrideid) {
vpl_include_jsfile('override.js');
$save = '<span class="btn-link override-action-button" onclick="VPL.submitOverrideForms();">' .
$save = '<a href="#" onclick="VPL.submitOverrideForms();">' .
$OUTPUT->pix_icon( 'save', get_string('save'), 'mod_vpl' ) .
'</span>';
$cancel = '<span class="btn-link override-action-button" onclick="VPL.cancelOverrideForms();">' .
'</a>';
$cancel = '<a href="#" onclick="VPL.cancelOverrideForms();">' .
$OUTPUT->pix_icon( 'cancel', get_string('cancel'), 'mod_vpl' ) .
'</span>';
'</a>';
return $save . $cancel;
} else if ($editing === null) {
$edit = '<a href="?id=' . $id . '&edit=' . $overrideid . '">' .
Expand Down

0 comments on commit 91d2df1

Please sign in to comment.