Skip to content

Commit

Permalink
Fix confirm button title attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Sep 13, 2024
1 parent 2220340 commit 9c8edf7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
$confirmAttrs['id'] = $id;
}
if ($title = $this->confirmTitle) {
$confirmAttrs['title'] = $title;
$confirmAttrs['title'] = $this->translate($title);
}
if ($class = $this->confirmClass) {
$confirmAttrs['class'] .= " $class";
Expand All @@ -68,7 +68,7 @@
$cancelAttrs['id'] = $id;
}
if ($title = $this->cancelTitle) {
$cancelAttrs['title'] = $title;
$cancelAttrs['title'] = $this->translate($title);
}
if ($class = $this->cancelClass) {
$cancelAttrs['class'] .= " $class";
Expand Down
4 changes: 2 additions & 2 deletions themes/bootstrap3/templates/checkouts/history.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
'buttonLabel' => 'loan_history_purge_selected',
'header' => 'loan_history_confirm_purge_selected',
'confirmId' => 'confirm_purge_selected_yes',
'confirmTitle' => 'bookbag_confirm_empty',
'confirmTitle' => 'loan_history_confirm_purge_selected',
'cancelClass' => 'confirm_purge_no',
]
)
Expand All @@ -69,7 +69,7 @@
'buttonLabel' => 'loan_history_purge_all',
'header' => 'loan_history_confirm_purge_all',
'confirmId' => 'confirm_purge_all_yes',
'confirmTitle' => 'bookbag_confirm_empty',
'confirmTitle' => 'loan_history_confirm_purge_all',
'cancelClass' => 'confirm_purge_no',
]
)
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap3/templates/holds/list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
'buttonLabel' => 'hold_cancel_all',
'header' => 'confirm_hold_cancel_all_text',
'confirmId' => 'confirm_cancel_all_yes',
'confirmTitle' => 'bookbag_confirm_empty',
'confirmTitle' => 'confirm_hold_cancel_all_text',
'cancelClass' => 'confirm_cancel_no',
'ignoreLightbox' => true,
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
$confirmAttrs['id'] = $id;
}
if ($title = $this->confirmTitle) {
$confirmAttrs['title'] = $title;
$confirmAttrs['title'] = $this->translate($title);
}
if ($class = $this->confirmClass) {
$confirmAttrs['class'] .= " $class";
Expand All @@ -68,7 +68,7 @@
$cancelAttrs['id'] = $id;
}
if ($title = $this->cancelTitle) {
$cancelAttrs['title'] = $title;
$cancelAttrs['title'] = $this->translate($title);
}
if ($class = $this->cancelClass) {
$cancelAttrs['class'] .= " $class";
Expand Down
4 changes: 2 additions & 2 deletions themes/bootstrap5/templates/checkouts/history.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
'buttonLabel' => 'loan_history_purge_selected',
'header' => 'loan_history_confirm_purge_selected',
'confirmId' => 'confirm_purge_selected_yes',
'confirmTitle' => 'bookbag_confirm_empty',
'confirmTitle' => 'loan_history_confirm_purge_selected',
'cancelClass' => 'confirm_purge_no',
]
)
Expand All @@ -69,7 +69,7 @@
'buttonLabel' => 'loan_history_purge_all',
'header' => 'loan_history_confirm_purge_all',
'confirmId' => 'confirm_purge_all_yes',
'confirmTitle' => 'bookbag_confirm_empty',
'confirmTitle' => 'loan_history_confirm_purge_all',
'cancelClass' => 'confirm_purge_no',
]
)
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap5/templates/holds/list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
'buttonLabel' => 'hold_cancel_all',
'header' => 'confirm_hold_cancel_all_text',
'confirmId' => 'confirm_cancel_all_yes',
'confirmTitle' => 'bookbag_confirm_empty',
'confirmTitle' => 'confirm_hold_cancel_all_text',
'cancelClass' => 'confirm_cancel_no',
'ignoreLightbox' => true,
]
Expand Down

0 comments on commit 9c8edf7

Please sign in to comment.