mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 13:38:03 +00:00
If nothing helps, Javascript to the rescue
This commit is contained in:
@@ -28,7 +28,10 @@
|
|||||||
<input class="required openid" id="id_openid_identifier" size="70" maxlength="255" name="openid_identifier" value="{{ openid_identifier }}" type="text"></p>
|
<input class="required openid" id="id_openid_identifier" size="70" maxlength="255" name="openid_identifier" value="{{ openid_identifier }}" type="text"></p>
|
||||||
|
|
||||||
<p><input type="submit" value="{% trans 'Login' %}" />
|
<p><input type="submit" value="{% trans 'Login' %}" />
|
||||||
<input type="hidden" name="next" value="{{ request.build_absolute_uri }}" />
|
<input type="hidden" name="next" id="next"/>
|
||||||
|
<script>
|
||||||
|
document.getElementById("next").value = window.location.protocol + '//' + window.location.hostname + "{% url 'profile' %}";
|
||||||
|
</script>
|
||||||
<a href="{% url 'home' %}">{% trans 'Cancel' %}</a></p>
|
<a href="{% url 'home' %}">{% trans 'Cancel' %}</a></p>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user