diff --git a/public/js/TableWidget.js b/public/js/TableWidget.js index e8ec539e2..57a03e665 100644 --- a/public/js/TableWidget.js +++ b/public/js/TableWidget.js @@ -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) { diff --git a/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js b/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js index 371268c1e..c56cd403b 100644 --- a/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js +++ b/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js @@ -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 ( diff --git a/public/js/tabulator/jquery_wrapper.js b/public/js/tabulator/jquery_wrapper.js index 041829d04..e5ef2e088 100644 --- a/public/js/tabulator/jquery_wrapper.js +++ b/public/js/tabulator/jquery_wrapper.js @@ -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)));