Improved JavaScript for better handling of non-client users.
authorNik Okuntseff <support@anuko.com>
Wed, 9 Jan 2019 23:47:25 +0000 (23:47 +0000)
committerNik Okuntseff <support@anuko.com>
Wed, 9 Jan 2019 23:47:25 +0000 (23:47 +0000)
WEB-INF/templates/footer.tpl
WEB-INF/templates/mobile/user_add.tpl
WEB-INF/templates/mobile/user_edit.tpl
WEB-INF/templates/user_add.tpl
WEB-INF/templates/user_edit.tpl

index 35fc2a5..27b17d5 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.18.36.4702 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.36.4703 | 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 71901fb..d23dcf9 100644 (file)
@@ -40,8 +40,10 @@ function handleClientControl() {
       var isClient = roles[i][1];
       if (isClient == 1)
         clientControl.style.visibility = "visible";
-      else
+      else {
+        clientControl.value = '';
         clientControl.style.visibility = "hidden";
+      }
       break;
     }
   }
index 0d7f47e..9929e72 100644 (file)
@@ -62,8 +62,10 @@ function handleClientControl() {
       var isClient = roles[i][1];
       if (isClient == 1)
         clientControl.style.visibility = "visible";
-      else
+      else {
+        clientControl.value = '';
         clientControl.style.visibility = "hidden";
+      }
       break;
     }
   }
index 39575db..0741dc3 100644 (file)
@@ -40,8 +40,10 @@ function handleClientControl() {
       var isClient = roles[i][1];
       if (isClient == 1)
         clientControl.style.visibility = "visible";
-      else
+      else {
+        clientControl.value = '';
         clientControl.style.visibility = "hidden";
+      }
       break;
     }
   }
index 7475c6e..3294754 100644 (file)
@@ -62,8 +62,10 @@ function handleClientControl() {
       var isClient = roles[i][1];
       if (isClient == 1)
         clientControl.style.visibility = "visible";
-      else
+      else {
+        clientControl.value = '';
         clientControl.style.visibility = "hidden";
+      }
       break;
     }
   }