added an option to configure note input height
authorAnže Videnič <anze.videnic@gmail.com>
Mon, 4 Jul 2016 14:23:24 +0000 (16:23 +0200)
committerAnže Videnič <anze.videnic@gmail.com>
Mon, 4 Jul 2016 14:23:24 +0000 (16:23 +0200)
.gitignore
WEB-INF/config.php.dist
time.php

index 883ae87..c1b019f 100644 (file)
@@ -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
index b52e0d8..dd66f5e 100644 (file)
@@ -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
index f0f2c7d..e0efafa 100644 (file)
--- 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));