From: Anže Videnič Date: Mon, 4 Jul 2016 14:23:24 +0000 (+0200) Subject: added an option to configure note input height X-Git-Tag: timetracker_1.19-1~1700^2^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3334a1d8a3cc149e014b84b6e46ee9d70fac6663;p=timetracker.git added an option to configure note input height --- diff --git a/.gitignore b/.gitignore index 883ae874..c1b019f7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ config.php WEB-INF/templates_c/*.php WEB-INF/templates_c/*.png WEB-INF/lib/tcpdf/ -nbproject/ \ No newline at end of file +nbproject/ +upload/ +.vscode/ \ No newline at end of file diff --git a/WEB-INF/config.php.dist b/WEB-INF/config.php.dist index b52e0d80..dd66f5e0 100644 --- a/WEB-INF/config.php.dist +++ b/WEB-INF/config.php.dist @@ -214,3 +214,6 @@ define('AUTH_MODULE', 'db'); // 'member_of' => array()); // List of groups, membership in which is required for user to be authenticated. // define('AUTH_DEBUG', false); // Note: enabling AUTH_DEBUG breaks redirects as debug output is printed before setting redirect header. Do not enable on production systems. + +// task window height in time.php +define('NOTE_INPUT_HEIGHT', '40'); \ No newline at end of file diff --git a/time.php b/time.php index f0f2c7de..e0efafa9 100644 --- a/time.php +++ b/time.php @@ -183,7 +183,7 @@ if (!$user->canManageTeam() && defined('READONLY_START_FINISH') && isTrue(READON } if ((TYPE_DURATION == $user->record_type) || (TYPE_ALL == $user->record_type)) $form->addInput(array('type'=>'text','name'=>'duration','value'=>$cl_duration,'onchange'=>"formDisable('duration');")); -$form->addInput(array('type'=>'textarea','name'=>'note','style'=>'width: 600px; height: 40px;','value'=>$cl_note)); +$form->addInput(array('type'=>'textarea','name'=>'note','style'=>'width: 600px; height:'.NOTE_INPUT_HEIGHT.'px;','value'=>$cl_note)); $form->addInput(array('type'=>'calendar','name'=>'date','value'=>$cl_date)); // calendar if ($user->isPluginEnabled('iv')) $form->addInput(array('type'=>'checkbox','name'=>'billable','data'=>1,'value'=>$cl_billable));