general: remove jquery inclusion as it's provided by the base template (#26277)
gitea/authentic/pipeline/head Build started...
Details
gitea/authentic/pipeline/head Build started...
Details
This commit is contained in:
parent
7f67ec30ca
commit
50efcd072f
|
@ -32,7 +32,6 @@ from django.utils import formats, html
|
|||
from django.utils.functional import keep_lazy
|
||||
from django.utils.translation import pgettext_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from gadjo.templatetags.gadjo import xstatic
|
||||
from rest_framework import serializers
|
||||
from rest_framework.fields import empty
|
||||
|
||||
|
@ -116,7 +115,6 @@ class AddressAutocompleteInput(forms.Select):
|
|||
|
||||
class Media:
|
||||
js = [
|
||||
xstatic('jquery.js', 'jquery.min.js'),
|
||||
settings.SELECT2_JS,
|
||||
'authentic2/manager/js/select2_locale.js',
|
||||
reverse_lazy('a2-manager-javascript-catalog'),
|
||||
|
|
|
@ -107,7 +107,6 @@ class PickerWidgetMixin(object):
|
|||
'all': ('css/datetimepicker.css',),
|
||||
}
|
||||
js = (
|
||||
xstatic('jquery', 'jquery.min.js'),
|
||||
xstatic('jquery_ui', 'jquery-ui.min.js'),
|
||||
'js/bootstrap-datetimepicker.js',
|
||||
'js/locales/bootstrap-datetimepicker.fr.js',
|
||||
|
@ -256,10 +255,7 @@ class TimeWidget(PickerWidgetMixin, TimeInput):
|
|||
|
||||
class PasswordInput(BasePasswordInput):
|
||||
class Media:
|
||||
js = (
|
||||
xstatic('jquery', 'jquery.min.js'),
|
||||
'authentic2/js/password.js',
|
||||
)
|
||||
js = ('authentic2/js/password.js',)
|
||||
css = {'all': ('authentic2/css/password.css',)}
|
||||
|
||||
def render(self, name, value, attrs=None, renderer=None):
|
||||
|
@ -346,12 +342,7 @@ class EmailInput(BaseEmailInput):
|
|||
@property
|
||||
def media(self):
|
||||
if app_settings.A2_SUGGESTED_EMAIL_DOMAINS:
|
||||
return forms.Media(
|
||||
js=(
|
||||
xstatic('jquery', 'jquery.min.js'),
|
||||
'authentic2/js/email_domains_suggestions.js',
|
||||
)
|
||||
)
|
||||
return forms.Media(js=('authentic2/js/email_domains_suggestions.js',))
|
||||
|
||||
def get_context(self, *args, **kwargs):
|
||||
context = super(EmailInput, self).get_context(*args, **kwargs)
|
||||
|
|
|
@ -66,7 +66,6 @@ class MediaMixin(object, metaclass=MediaMixinBase):
|
|||
|
||||
class Media:
|
||||
js = (
|
||||
xstatic('jquery.js', 'jquery.min.js'),
|
||||
reverse_lazy('a2-manager-javascript-catalog'),
|
||||
xstatic('jquery-ui.js', 'jquery-ui.min.js'),
|
||||
'js/gadjo.js',
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
{% block extrascripts %}
|
||||
{{ block.super }}
|
||||
<script src="{% xstatic 'jquery' 'jquery.min.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static "authentic2/js/logout.js" %}"></script>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
{% block extrascripts %}
|
||||
{{ block.super }}
|
||||
<script src="{% xstatic 'jquery' 'jquery.min.js' %}"></script>
|
||||
<script>$(function () {
|
||||
setTimeout(function () {
|
||||
window.location='{{ next_page|escapejs }}'
|
||||
|
|
Loading…
Reference in New Issue