]> wagnertech.de Git - timetracker.git/commitdiff
Made only one button available on the Timer page
authorNik Okuntseff <support@anuko.com>
Wed, 16 Mar 2016 01:41:11 +0000 (01:41 +0000)
committerNik Okuntseff <support@anuko.com>
Wed, 16 Mar 2016 01:41:11 +0000 (01:41 +0000)
WEB-INF/templates/footer.tpl
WEB-INF/templates/mobile/timer.tpl
mobile/timer.php

index 0dd33a8d1ff61f48119904eb87c5572b4b3df125..ee0b060451e73a2568b44d5968ae811523f1de3d 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.9.16.3417 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.9.16.3418 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index 929d5c23e469f16611091414ec19a9f5d7f42c76..5b9e3aa5edb3906992c76fee37567109e4dfe150 100644 (file)
@@ -158,7 +158,7 @@ function get_time() {
 }
 </style>
 
-<span id="hour">00</span><span id="separator">:</span><span id="min">00</span><!--:<span id="sec">00</span>-->
+<p><span id="hour">00</span><span id="separator">:</span><span id="min">00</span>
 
 
 <script>
index 7fde4eafc94507301b71dea326c6eddaed210548..63bf258d50b800a10fccaaac2499f9f986e476e5 100644 (file)
@@ -164,8 +164,10 @@ $form->addInput(array('type'=>'hidden','name'=>'browser_today','value'=>'')); //
 $form->addInput(array('type'=>'hidden','name'=>'browser_time','value'=>''));  // User current time, which gets filled in on button click.
 $enable_start = $uncompleted ? false : true;
 $enable_stop = $uncompleted ? true : false;
-$form->addInput(array('type'=>'submit','name'=>'btn_start','onclick'=>'browser_time.value=get_time()','value'=>$i18n->getKey('label.start'),'enable'=>$enable_start));
-$form->addInput(array('type'=>'submit','name'=>'btn_stop','onclick'=>'browser_time.value=get_time()','value'=>$i18n->getKey('label.finish'),'enable'=>$enable_stop));
+if (!$uncompleted)
+  $form->addInput(array('type'=>'submit','name'=>'btn_start','onclick'=>'browser_time.value=get_time()','value'=>$i18n->getKey('label.start'),'enable'=>$enable_start));
+else
+  $form->addInput(array('type'=>'submit','name'=>'btn_stop','onclick'=>'browser_time.value=get_time()','value'=>$i18n->getKey('label.finish'),'enable'=>$enable_stop));
   
 // If we have custom fields - add controls for them.
 if ($custom_fields && $custom_fields->fields[0]) {