summaryrefslogtreecommitdiff
path: root/resources/views/admin/site-mail.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/admin/site-mail.phtml')
-rw-r--r--resources/views/admin/site-mail.phtml8
1 files changed, 1 insertions, 7 deletions
diff --git a/resources/views/admin/site-mail.phtml b/resources/views/admin/site-mail.phtml
index 9b9d3396e3..ffe6102faa 100644
--- a/resources/views/admin/site-mail.phtml
+++ b/resources/views/admin/site-mail.phtml
@@ -152,7 +152,7 @@ use Fisharebest\Webtrees\Webtrees;
I18N::translate('Password') ?>
</label>
<div class="col-sm-9">
- <input type="password" class="form-control" id="SMTP_AUTH_PASS" name="SMTP_AUTH_PASS" value="" autocomplete="new-password">
+ <input type="password" class="form-control" id="SMTP_AUTH_PASS" name="SMTP_AUTH_PASS" value="" autocomplete="new-password" data-show-text="<?= e(I18N::translate('Show')) ?>" data-show-title="<?= e(I18N::translate('Show password')) ?>" data-hide-text="<?= e(I18N::translate('Hide')) ?>" data-hide-title="<?= e(I18N::translate('Hide password')) ?>">
<p class="small text-muted">
<?= /* I18N: Help text for the "Password" site configuration setting */
I18N::translate('The password required for authentication with the SMTP server.') ?>
@@ -249,9 +249,3 @@ use Fisharebest\Webtrees\Webtrees;
</div>
</div>
</form>
-
-<?php View::push('javascript') ?>
-<script>
- $("#SMTP_AUTH_PASS").hideShowPassword("infer", true);
-</script>
-<?php View::endpush() ?>