Merge pull request #404 from eReuse/bugfix/4074-table-row

fixing table.rows()
This commit is contained in:
cayop 2022-11-14 10:24:46 +01:00 committed by GitHub
commit 4bf27706db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ var _tableRows = {
}; };
var _tableRowsPage = { var _tableRowsPage = {
writable: true, writable: true,
value: () => table.pages[table.rows().dt.currentPage - 1] value: () => table.pages[table.rows.dt.currentPage - 1]
}; };
const selectorController = action => { const selectorController = action => {

View File

@ -21,7 +21,7 @@ $(document).ready(() => {
class TableController { class TableController {
static #tableRows = () => table.activeRows.length > 0 ? table.activeRows : []; static #tableRows = () => table.activeRows.length > 0 ? table.activeRows : [];
static #tableRowsPage = () => table.pages[table.rows().dt.currentPage - 1]; static #tableRowsPage = () => table.pages[table.rows.dt.currentPage - 1];
/** /**
* @returns Selected inputs from device list * @returns Selected inputs from device list