mirror of
https://github.com/opnsense/core.git
synced 2026-02-18 18:18:13 -05:00
bootgrid: swap order of custom commands placement making sure they participate in command binding
(cherry picked from commit 5b3b163ce0)
This commit is contained in:
parent
6859f279d3
commit
0c849634f2
1 changed files with 5 additions and 5 deletions
|
|
@ -831,11 +831,6 @@ class UIBootgrid {
|
|||
|
||||
this._renderFooterCommands();
|
||||
|
||||
// if there are custom commands defined, inject them here
|
||||
if (this.customCommands !== null) {
|
||||
this.customCommands.appendTo($(`#${this.id} > .tabulator-footer > .tabulator-footer-contents`));
|
||||
}
|
||||
|
||||
// swap page counter and paginator around (old look & feel).
|
||||
// we hook in before tableBuilt, but after dataLoading
|
||||
// since we know the footer is rendered at this point,
|
||||
|
|
@ -1167,6 +1162,11 @@ class UIBootgrid {
|
|||
|
||||
$footerPrimary.after($commandContainer);
|
||||
|
||||
// if there are custom commands defined, inject them here
|
||||
if (this.customCommands !== null) {
|
||||
this.customCommands.appendTo($footerSecondary);
|
||||
}
|
||||
|
||||
// bind tooltips
|
||||
$(`#${this.id} > .tabulator-footer`).find('.bootgrid-tooltip').each((i, el) => {
|
||||
$(el).tooltip({container: 'body', trigger: 'hover'});
|
||||
|
|
|
|||
Loading…
Reference in a new issue