Bernd Wurst commited on 2013-02-27 06:59:26
Zeige 1 geänderte Dateien mit 20 Einfügungen und 1 Löschungen.
| ... | ... |
@@ -139,6 +139,25 @@ output("<script type=\"text/javascript\">
|
| 139 | 139 |
} |
| 140 | 140 |
} |
| 141 | 141 |
|
| 142 |
+ function clearPassword() {
|
|
| 143 |
+ var input = document.getElementById('password');
|
|
| 144 |
+ if (input.value == '**********') {
|
|
| 145 |
+ input.value = ''; |
|
| 146 |
+ } |
|
| 147 |
+ input.style.color = '#000'; |
|
| 148 |
+ } |
|
| 149 |
+ |
|
| 150 |
+ function refillPassword() {
|
|
| 151 |
+ var input = document.getElementById('password');
|
|
| 152 |
+ if (input.value == '') {
|
|
| 153 |
+ input.value = input.defaultValue; |
|
| 154 |
+ } |
|
| 155 |
+ if (input.value == '**********') {
|
|
| 156 |
+ input.style.color = '#aaa'; |
|
| 157 |
+ } |
|
| 158 |
+ } |
|
| 159 |
+ |
|
| 160 |
+ |
|
| 142 | 161 |
</script> |
| 143 | 162 |
"); |
| 144 | 163 |
|
| ... | ... |
@@ -176,7 +195,7 @@ if ($accountlogin) {
|
| 176 | 195 |
$form .= " |
| 177 | 196 |
<p><input onchange=\"toggleDisplay('mailbox', 'mailbox_options')\" type=\"checkbox\" id=\"mailbox\" name=\"mailbox\" value=\"yes\" ".($is_mailbox ? 'checked="checked" ' : '')." /><label for=\"mailbox\"> <strong>In Mailbox speichern</strong></label></p>
|
| 178 | 197 |
<div style=\"margin-left: 2em;".($is_mailbox ? '' : ' display: none;')."\" id=\"mailbox_options\"> |
| 179 |
- <p>Passwort für Abruf: <input type=\"password\" id=\"password\" name=\"password\" value=\"{$password_value}\" />{$password_message}</p>";
|
|
| 198 |
+ <p>Passwort für Abruf: <input onfocus=\"clearPassword()\" onblur=\"refillPassword()\" style=\"color: #aaa;\" type=\"password\" id=\"password\" name=\"password\" value=\"{$password_value}\" />{$password_message}</p>";
|
|
| 180 | 199 |
|
| 181 | 200 |
$form.= "<p class=\"spamfilter_options\">Unerwünschte E-Mails (Spam, Viren) in diesem Postfach ".html_select('spamfilter_action', array("none" => 'nicht filtern', "folder" => 'in Unterordner »Spam« ablegen', "tag" => 'markieren und zustellen', "delete" => 'nicht zustellen (löschen)'), $account['spamfilter'])."</p>";
|
| 182 | 201 |
|
| 183 | 202 |