fix: general javascript improvements

This commit is contained in:
Herculino Trotta
2025-11-13 11:12:43 -03:00
parent 2bc5e24e51
commit 7c3120cd43
4 changed files with 8 additions and 22 deletions

View File

@@ -1,8 +1,7 @@
{% load django_vite %}
{% vite_hmr_client %}
{% vite_asset 'main.js' defer=True %}
{% vite_asset 'main.js' defer="defer" %}
{% include 'includes/scripts/hyperscript/init_tom_select.html' %}
{% include 'includes/scripts/hyperscript/init_date_picker.html' %}
@@ -13,7 +12,7 @@
{% include 'includes/scripts/hyperscript/swal.html' %}
{% include 'includes/scripts/hyperscript/autosize.html' %}
<script>
<script defer>
let tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
if (!tz) {
tz = "UTC"

View File

@@ -37,13 +37,6 @@
{% translate 'Login with' %} {{ provider.name }}
</a>
</li>
<li>
<a title="{{ provider.name }}"
class="btn btn-outline btn-primary w-full socialaccount_provider {{ provider.id }}"
href="{% provider_login_url provider %}">
{% translate 'Login with' %} {{ provider.name }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}