Skip to content

Commit

Permalink
Merge pull request #1481 from ggoffy/master
Browse files Browse the repository at this point in the history
fixing bug with button cancel
  • Loading branch information
mambax7 authored Nov 14, 2024
2 parents b1be140 + 6c94ed6 commit 05b422a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public function renderFormButtonTray(XoopsFormButtonTray $element)
$ret .= '<button type="submit" class="btn btn-danger me-1" name="delete" id="delete" onclick="this.form.elements.op.value=\'delete\'">' . _DELETE
. '</button>';
}
$ret .= '<button class="btn btn-danger me-1" onClick="history.go(-1);return true;">'
. _CANCEL . '</button>'
$ret .= '<input type="button" class="btn btn-danger me-1" name="cancel" id="cancel" onClick="history.go(-1);return true;" value="'
. _CANCEL . '">'
. '<button type="reset" class="btn btn-warning me-1" name="reset" id="reset">' . _RESET . '</button>'
. '<button type="' . $element->getType() . '" class="btn btn-success" name="' . $element->getName()
. '" id="' . $element->getName() . '" ' . $element->getExtra()
Expand Down

0 comments on commit 05b422a

Please sign in to comment.