Skip to content

Commit 88ddb56

Browse files
comment out table events, columns, 1st 10 rows, and table settings debug in tableView.js (#61)
1 parent fbbff3b commit 88ddb56

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web/scripts/tableView.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const debugInvalidOptions = true; // tabulator warnings
4242

4343
// Note: set these events to true to log all events dispatched by the Tabulator table.
4444
// To debug table data loading add 'dataLoaded' to the tracked external Tabulator events.
45-
const debugEventsExternal = ['tableBuilding', 'tableBuilt'];
45+
const debugEventsExternal = false; //['tableBuilding', 'tableBuilt'];
4646
const debugEventsInternal = false; // log all internal tabulator events
4747

4848
// table row context menu options
@@ -246,7 +246,7 @@ function onTableBuilt () {
246246

247247
// get table columns for debug
248248
const columns = table.getColumns();
249-
console.log('tableView.columns:', columns);
249+
// console.log('tableView.columns:', columns);
250250

251251
// add row selection column
252252
// TODO: make this optional via tabular data viewer config setting
@@ -360,7 +360,7 @@ function clearTable(table) {
360360
function saveTableSetting(id, type, data) {
361361
// create table setting key
362362
const tableSettingKey = `${id}-${type}`;
363-
console.log(`tableSetting:${tableSettingKey}:`, data);
363+
// console.log(`tableSetting:${tableSettingKey}:`, data);
364364

365365
// save table settings in local storage for now
366366
localStorage.setItem(tableSettingKey, JSON.stringify(data));
@@ -380,7 +380,7 @@ function restoreTableSetting(id, type) {
380380
// try to get requested table setting from local storage
381381
const tableSetting = localStorage.getItem(tableSettingKey);
382382
if (tableSetting) {
383-
console.log(`tableSetting:${tableSettingKey}:`, tableSetting);
383+
// console.log(`tableSetting:${tableSettingKey}:`, tableSetting);
384384
}
385385
return tableSetting ? JSON.parse(tableSetting) : false;
386386
}
@@ -471,5 +471,5 @@ function saveData() {
471471
*/
472472
function logTableData(tableData) {
473473
console.log('tableView.loadedRows:', tableData.length.toLocaleString());
474-
console.log('1st 10 rows:', tableData.slice(0, 10));
474+
// console.log('1st 10 rows:', tableData.slice(0, 10));
475475
}

0 commit comments

Comments
 (0)