Bug fix for tables

This commit is contained in:
Oliver Walters 2021-02-17 13:05:58 +11:00
parent 8780b8435a
commit c8650ce34c

View File

@ -45,6 +45,10 @@ function linkButtonsToSelection(table, buttons) {
* The buttons will only be enabled if there is at least one row selected * 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 // Initially set the enable state of the buttons
enableButtons(buttons, table.bootstrapTable('getSelections').length > 0); enableButtons(buttons, table.bootstrapTable('getSelections').length > 0);