corrects reviewAnrechnungDetail style typo, and adds the height function to the adminAnrechnung table again

This commit is contained in:
SimonGschnell
2024-04-23 13:43:00 +02:00
parent bebec98285
commit 96b79c8740
4 changed files with 10 additions and 9 deletions
@@ -20,16 +20,17 @@ $filterWidgetArray = array(
ucfirst($this->p->t('ui', 'bearbeitetVon')),
),
'datasetRepOptions' => '{
layout: "fitColumns",
height: func_height(this),
layout: "fitDataFill",
persistentLayout:true,
autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated
headerFilterPlaceholder: " ",
index: "anrechnungszeitraum_id", // assign specific column as unique id (important for row indexing)
selectable: false, // allow row selection
tableWidgetHeader: true,
columnDefaults:{
headerFilterPlaceholder: " ",
}
tableBuilt: function(){
func_tableBuilt(this);
},
}',
'datasetRepFieldsDefs' => '{
anrechnungszeitraum_id: {visible: false, headerFilter:"input"},
@@ -124,7 +124,7 @@ if ($configFachbereichsleitung === TRUE) {
$filterWidgetArray = array(
'query' => $query,
'bootstrapVersion'=>5,
'bootstrapVersion' => 5,
'tableUniqueId' => 'approveAnrechnungUebersicht',
'requiredPermissions' => 'lehre/anrechnung_empfehlen',
'datasetRepresentation' => 'tabulator',
@@ -173,7 +173,7 @@ $filterWidgetArray = array(
//columnDefaults tooltip did not work
tooltip:true,
tooltip:func_tooltips,
headerFilterPlaceholder: " ",
}
@@ -214,7 +214,7 @@ var reviewAnrechnung = {
$('#reviewAnrechnungDetail-status_kurzbz').closest('div').addClass('bg-info-subtle');
break;
default:
$('#reviewAnrechnungDetail-status_kurzbz').closest('div').addClass('bg-warning-stubtle');
$('#reviewAnrechnungDetail-status_kurzbz').closest('div').addClass('bg-warning-subtle');
}
},
setEmpfehlungstext: function () {
@@ -138,7 +138,7 @@ function func_tooltips(e, cell, onRendered) {
//e - mouseover event
//cell - cell component
//onRendered - onRendered callback registration functionfunction
console.log("this is a tooltip");
// Return tooltip if row is unselectable
if (!func_selectableCheck(cell.getRow())) {
return FHC_PhrasesLib.t("ui", "nichtSelektierbarAufgrundVon") + "Status";