From 3334a1d8a3cc149e014b84b6e46ee9d70fac6663 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Anz=CC=8Ce=20Videnic=CC=8C?= Date: Mon, 4 Jul 2016 16:23:24 +0200 Subject: [PATCH] added an option to configure note input height --- .gitignore | 4 +++- WEB-INF/config.php.dist | 3 +++ time.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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)); -- 2.20.1