MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / updateRowInfo

Function updateRowInfo

libs/datatables-binding-0.18/datatables.js:1246–1258  ·  view source on GitHub ↗
(id, modifier)

Source from the content-addressed store, hash-verified

1244 // TODO: is anyone interested in the page info?
1245 // changeInput('page_info', table.page.info());
1246 var updateRowInfo = function(id, modifier) {
1247 var idx;
1248 if (server) {
1249 idx = modifier.page === 'current' ? DT_rows_current : DT_rows_all;
1250 } else {
1251 var rows = table.rows($.extend({
1252 search: 'applied',
1253 page: 'all'
1254 }, modifier));
1255 idx = addOne(rows.indexes().toArray());
1256 }
1257 changeInput('rows' + '_' + id, idx);
1258 };
1259 updateRowInfo('current', {page: 'current'});
1260 updateRowInfo('all', {});
1261 }

Callers 1

updateTableInfoFunction · 0.85

Calls 2

addOneFunction · 0.85
changeInputFunction · 0.85

Tested by

no test coverage detected