removes unnecessary debugging prints

This commit is contained in:
SimonGschnell
2024-03-21 14:46:03 +01:00
parent 1a76231df0
commit 72b19987bd
3 changed files with 13 additions and 25 deletions
+2 -3
View File
@@ -628,7 +628,6 @@ var FHC_TableWidget = {
*/
if (typeof options.tableWidgetFooter != 'undefined' && options.tableWidgetFooter != null)
{
console.log("this are the options i am intereseted in:",options)
var tabulatorFooterHTML = _renderTabulatorFooterHTML(options.tableWidgetFooter);
tableWidgetDiv.find('#tableWidgetFooter').append(tabulatorFooterHTML);
}
@@ -706,7 +705,7 @@ var FHC_TableWidget = {
_getRepresentationOptions: function(data) {
var options = {}; // eventually contains options fot the representation
console.log("here is the data before it was parsed",data.datasetRepresentationOptions)
// Checks if options were given
if (data.hasOwnProperty("datasetRepresentationOptions") && data.datasetRepresentationOptions != "")
{
@@ -924,7 +923,7 @@ function _renderTabulatorHeaderCollapseHTML(tableWidgetDiv,arrayTabulatorColumns
function _renderTabulatorFooterHTML(tableWidgetFooterOptions){
var tabulatorFooterHTML = '';
console.log("footer options",tableWidgetFooterOptions)
// If property selectButtons is true, render 'Alle auswaehlen / Alle abwaehlen' buttons
if (typeof tableWidgetFooterOptions.selectButtons != 'undefined' && tableWidgetFooterOptions.selectButtons == true)
{
@@ -167,7 +167,6 @@ function func_rowFormatter(row){
// Formats row selectable/unselectable
function func_selectableCheck(row){
console.log("entered here in selectable check")
let status_kurzbz = row.getData().status_kurzbz;
return (
+11 -21
View File
@@ -38,27 +38,17 @@
this.table = new Tabulator(this.element[0], options);
window.table = this.table;
console.log(this.table);
props = Object.getOwnPropertyNames(Object.getPrototypeOf(Object.getPrototypeOf(this.table)));
props = props.concat(Object.getOwnPropertyNames(this.table));
console.log(props);
const that = this;
this.table.on("tableBuilt", function(){
console.log('bhbuilt begin');
console.log(this);
props = Object.getOwnPropertyNames(Object.getPrototypeOf(Object.getPrototypeOf(this)));
props = props.concat(Object.getOwnPropertyNames(this));
for(let key of props){
if( key === 'download' ) console.log('download: ' + typeof this[key]);
if(typeof this[key] === "function" && key.charAt(0) !== "_"){
that[key] = this[key].bind(this);
}
}
console.log(props);
console.log('bhbuilt end');
$(document).trigger("tableInit",[this]);
});
const that = this;
this.table.on("tableBuilt", function(){
props = Object.getOwnPropertyNames(Object.getPrototypeOf(Object.getPrototypeOf(this)));
props = props.concat(Object.getOwnPropertyNames(this));
for(let key of props){
if(typeof this[key] === "function" && key.charAt(0) !== "_"){
that[key] = this[key].bind(this);
}
}
$(document).trigger("tableInit",[this]);
});
//retrieve properties on prototype
props = Object.getOwnPropertyNames(Object.getPrototypeOf(Object.getPrototypeOf(this.table)));