load->view('lehre/anrechnung/approveAnrechnungUebersichtData.php'); ?>
diff --git a/application/views/lehre/anrechnung/approveAnrechnungUebersichtData.php b/application/views/lehre/anrechnung/approveAnrechnungUebersichtData.php
index 2eb7acb9a..54453bc8e 100644
--- a/application/views/lehre/anrechnung/approveAnrechnungUebersichtData.php
+++ b/application/views/lehre/anrechnung/approveAnrechnungUebersichtData.php
@@ -216,7 +216,7 @@ $filterWidgetArray = array(
selectablePersistence:false, // deselect previously selected rows when table is filtered, sorted or paginated
tableBuilt: function(){
- //func_tableBuilt(this);
+ func_tableBuilt(this);
},
tableWidgetFooter: {
selectButtons: false
diff --git a/public/js/TableWidget.js b/public/js/TableWidget.js
index e5a510b22..338925fc1 100644
--- a/public/js/TableWidget.js
+++ b/public/js/TableWidget.js
@@ -562,7 +562,7 @@ var FHC_TableWidget = {
// Renders the tabulator
tableWidgetDiv.find("#tableWidgetTabulator").tabulator(options);
- tableWidgetDiv.find("#tableWidgetTabulator").tabulator("on","tableBuilt",()=>{console.log("table build")});
+ //tableWidgetDiv.find("#tableWidgetTabulator").tabulator("on","tableBuilt",()=>{console.log("table build")});
}
diff --git a/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js b/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js
index bd7423671..2f4a4dafe 100644
--- a/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js
+++ b/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js
@@ -19,12 +19,6 @@ var selectedPrestudentWithAccumulatedLvEcts = [];
-let ttw = $('div[tableUniqueId="approveAnrechnungUebersicht"]');
-ttw.tabulator("on","tableBuilt", function(){
- console.log("this is just a test");
-});
-
-
// -----------------------------------------------------------------------------------------------------------------
// Mutators - setter methods to manipulate table data when entering the tabulator
@@ -79,22 +73,20 @@ function func_tableBuilt(table) {
// Store table in global var
tabulator = table;
- table.addColumn(
- {
- title: "Details",
- field: 'details',
- align: "center",
- width: 100,
- formatter: "link",
- formatterParams:{
- label:"Details",
- url:function(cell){
- return BASE_URL + "/" + APPROVE_ANRECHNUNG_DETAIL_URI + "?anrechnung_id=" + cell.getData().anrechnung_id
- },
- target:"_blank"
- }
- }, true // place column on the very left
- );
+ table.tabulator("addColumn",{
+ title: "Details",
+ field: 'details',
+ align: "center",
+ width: 100,
+ formatter: "link",
+ formatterParams:{
+ label:"Details",
+ url:function(cell){
+ return BASE_URL + "/" + APPROVE_ANRECHNUNG_DETAIL_URI + "?anrechnung_id=" + cell.getData().anrechnung_id
+ },
+ target:"_blank"
+ }
+ }, true); // place column on the very left
// Set focus on filterbutton
let filters = table.getFilters();
@@ -252,13 +244,20 @@ function tableWidgetHook_selectAllButton(tableWidgetDiv){
}
-$(function(){
+
+$(function(){
const genehmigung_panel = $('#approveAnrechnungUebersicht-genehmigung-panel');
const begruendung_panel = $('#approveAnrechnungUebersicht-begruendung-panel');
const hasReadOnlyAccess = $('#formApproveAnrechnungUebersicht').data('readonly');
const hasCreateAnrechnungAccess = $('#formApproveAnrechnungUebersicht').data('createaccess');
+
+
+
+ var tab = $('div[tableUniqueId="approveAnrechnungUebersicht"]');
+ tab.on("tableBuilt",()=>func_tableBuilt(tab));
+
// Pruefen ob Promise unterstuetzt wird
// Tabulator funktioniert nicht mit IE
var canPromise = !! window.Promise;
@@ -363,7 +362,7 @@ $(function(){
begruendung_panel.css('display', 'none');
- if (genehmigung_panel.is(":hidden"))
+ if (genehmigung_panel.is(":hidden"))
{
// Show begruendung panel if is hidden
genehmigung_panel.slideDown(400, function() {