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 0dd33a8..ee0b060 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 929d5c2..5b9e3aa 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 7fde4ea..63bf258 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]) {