Revert "pre-fill the domain"

This reverts commit 46b6992b52.
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2024-05-22 14:49:24 +02:00
parent 8c349800c0
commit eeccfec0c9
2 changed files with 1 additions and 11 deletions

View file

@ -1,7 +0,0 @@
document.addEventListener("DOMContentLoaded", function(event) {
// domain
let domain = document.getElementById("domain_input");
if (domain) {
domain.value = window.location.host
}
});

View file

@ -21,9 +21,6 @@
{# Add 2nd tab warning #}
<script type="text/javascript" src="second-tab-warning.js"></script>
{# Add domain-prefill #}
<script type="text/javascript" src="domain-prefill.js"></script>
{# timezone-prefill #}
<script type="text/javascript" src="timezone.js"></script>
@ -106,7 +103,7 @@
<b>Please note:</b> The domain validation is disabled so any domain will be accepted here! Make sure you do not make a typo here as you will not be able to change it afterwards!<br><br>
{% endif %}
<form method="POST" action="/api/configuration" class="xhr">
<input type="text" id="domain_input" name="domain" value="{{ domain }}" placeholder="nextcloud.yourdomain.com"/>
<input type="text" name="domain" value="{{ domain }}" placeholder="nextcloud.yourdomain.com"/>
<input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}">
<input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}">
<input class="button" type="submit" value="Submit domain" />