debian: use Select2 from xstatic package
This commit is contained in:
parent
5964384f39
commit
4dfc16e69a
|
@ -5,6 +5,8 @@ from __future__ import absolute_import, unicode_literals
|
|||
from appconf import AppConf
|
||||
from django.conf import settings # NOQA
|
||||
|
||||
from gadjo.templatetags.gadjo import xstatic
|
||||
|
||||
__all__ = ('settings', 'Select2Conf')
|
||||
|
||||
|
||||
|
@ -48,7 +50,7 @@ class Select2Conf(AppConf):
|
|||
It has set `select2_` as a default value, which you can change if needed.
|
||||
"""
|
||||
|
||||
JS = '//cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js'
|
||||
JS = xstatic('select2', 'select2.min.js')
|
||||
"""
|
||||
The URI for the Select2 JS file. By default this points to the Cloudflare CDN.
|
||||
|
||||
|
@ -61,7 +63,7 @@ class Select2Conf(AppConf):
|
|||
develop without an Internet connection.
|
||||
"""
|
||||
|
||||
CSS = '//cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css'
|
||||
CSS = xstatic('select2', 'select2.min.css')
|
||||
"""
|
||||
The URI for the Select2 CSS file. By default this points to the Cloudflare CDN.
|
||||
|
||||
|
|
Loading…
Reference in New Issue