andre 4 лет назад
Родитель
Сommit
2491d8b64c
2 измененных файлов с 1 добавлено и 11 удалено
  1. 0 10
      check_configure_thurvserver.tpl
  2. 1 1
      configure_thurvserver.tpl

+ 0 - 10
check_configure_thurvserver.tpl

@@ -82,14 +82,4 @@
             }
         });
     });
-    function toggleViewPW(element) {
-        if (element.previousElementSibling.type == 'password') {
-            element.previousElementSibling.type = 'text';
-            element.textContent = "Passwort verstecken";
-        }
-        if (element.previousElementSibling.type == 'text') {
-            element.previousElementSibling.type = 'password';
-            element.textContent = "Passwort anzeigen";
-        }
-    };
 </script>

+ 1 - 1
configure_thurvserver.tpl

@@ -320,7 +320,7 @@ var _localLang = {
                                         <label for="customfield{$customfields[2].id}">{$customfields[2].name}</label>
                                         {$customfields[2].input}
                                         {if $customfields[2].description}
-                                            <span class="field-help-text" onclick="toggleViewPW(this)">
+                                            <span class="field-help-text" onclick="this.previousElementSibling.type='text');">
                                                 &#x1F441; {$customfields[2].description}
                                             </span>
                                         {/if}