mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fix for tables
This commit is contained in:
parent
8780b8435a
commit
c8650ce34c
@ -45,6 +45,10 @@ function linkButtonsToSelection(table, buttons) {
|
||||
* The buttons will only be enabled if there is at least one row selected
|
||||
*/
|
||||
|
||||
if (typeof table === 'string') {
|
||||
table = $(table);
|
||||
}
|
||||
|
||||
// Initially set the enable state of the buttons
|
||||
enableButtons(buttons, table.bootstrapTable('getSelections').length > 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user