sets the height of the adminZeitverfuegbarkeit to 50% of the screen ehight

This commit is contained in:
SimonGschnell
2024-04-25 14:16:28 +02:00
parent d01b05fd73
commit b7ffe00c69
2 changed files with 7 additions and 0 deletions
@@ -40,6 +40,7 @@ $filterWidgetArray = array(
ucfirst($this->p->t('global', 'notiz'))
),
'datasetRepOptions' => '{
height: func_height(this),
layout: "fitColumns", // fit columns to width of table
autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated
index: "zeitsperre_id", // assign specific column as unique id (important for row indexing)
+6
View File
@@ -1,3 +1,9 @@
// Returns relative height (depending on screen size)
function func_height(table) {
return $(window).height() * 0.5;
}
$(function(){
// tableInit is called in the jquery_wrapper when the tableBuilt event was finished