Merge branch 'taskChanges' of https://github.com/avidenic/timetracker into avidenic...
authorNik Okuntseff <support@anuko.com>
Mon, 18 Jul 2016 18:16:52 +0000 (18:16 +0000)
committerNik Okuntseff <support@anuko.com>
Mon, 18 Jul 2016 18:16:52 +0000 (18:16 +0000)
Conflicts:
.gitignore
WEB-INF/config.php.dist

WEB-INF/config.php.dist
time.php

index 5afca00..cc3d0cd 100644 (file)
@@ -218,3 +218,6 @@ define('AUTH_MODULE', 'db');
 // team manager can set monthly quota for years between these values:
 define('MONTHLY_QUOTA_YEARS_START', 2010); // if nothing is specified, it falls back to 2010
 define('MONTHLY_QUOTA_YEARS_END', 2031); // if nothing is specified it falls back to 2030
+
+// note input height in time.php
+define('NOTE_INPUT_HEIGHT', '40');
index 9a34d30..4042d7c 100644 (file)
--- a/time.php
+++ b/time.php
@@ -194,7 +194,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));