mirror of
https://github.com/opnsense/core.git
synced 2026-02-03 20:39:42 -05:00
Bootgrid: allow multi word tooltips (#9656)
This commit is contained in:
parent
87445129bf
commit
0642e17bc5
1 changed files with 4 additions and 4 deletions
|
|
@ -1124,8 +1124,8 @@ class UIBootgrid {
|
|||
}
|
||||
|
||||
const title = typeof command?.title === "function"
|
||||
? `title=${command?.title()}`
|
||||
: `title=${command?.title}` ?? '';
|
||||
? `title="${command?.title()}"`
|
||||
: `title="${command?.title}"` ?? '';
|
||||
|
||||
const $element = $(`
|
||||
<button type="button" class="btn btn-xs ${key === 'add' ? 'btn-primary' : 'btn-default'} command-${key} bootgrid-tooltip" ${title}>
|
||||
|
|
@ -1648,8 +1648,8 @@ class UIBootgrid {
|
|||
|
||||
if (has_option) {
|
||||
let title = typeof command?.title === "function"
|
||||
? `title=${command?.title(cell)}`
|
||||
: `title=${command?.title}` ?? '';
|
||||
? `title="${command?.title(cell)}"`
|
||||
: `title="${command?.title}"` ?? '';
|
||||
|
||||
html.push(`
|
||||
<button type="button"
|
||||
|
|
|
|||
Loading…
Reference in a new issue