]> wagnertech.de Git - timetracker.git/commitdiff
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 883ae8743dc3ff9b09e8aa9f055d944f6bc55039..c1b019f722c32aa91e61450d845dafbf80c1baa2 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 b52e0d809ccb198e98d36079513cc75ebc5f98a7..dd66f5e02458c2ec6954786da3d77308ef952955 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 f0f2c7de86f4047e99c7ee80460e7dedf99d7e49..e0efafa9c02bf5a6fbb596d32892a2a434e30417 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));