]> wagnertech.de Git - timetracker.git/commitdiff
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 35fc2a5d35a9cc9a9f021d790c8b660678efd01d..27b17d576c24ec667929d31e76ea8d8580585da5 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 71901fb05361669c281b769040b84366c3e5a137..d23dcf932d31f6eeec280af99e22131dd6139a4b 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 0d7f47e6c7c36b963743efddff8409c4c1c19744..9929e72729156548e4a04de7b1a2a886e3bbcf9c 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 39575db0c0da76d109b462a1d20d4d54f9c2a056..0741dc3e9f873af30fbb2adf016c58a2aec47c4d 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 7475c6efb4ec8174138f3398bfb12511630b0bf3..32947545d968e7588b1ba1047c6746c6e63cc1fe 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;
     }
   }