Browse Source

Remove use of JQuery CDN

pull/292/merge
Simon Conseil 8 years ago
parent
commit
bcf381d08f
  1. 1
      sigal/settings.py
  2. 4
      sigal/templates/sigal.conf.py
  3. 4
      sigal/themes/colorbox/templates/index.html
  4. 4
      sigal/themes/galleria/templates/index.html

1
sigal/settings.py

@ -75,7 +75,6 @@ _DEFAULT_CONFIG = {
'thumb_suffix': '',
'thumb_video_delay': '0',
'title': '',
'use_assets_cdn': True,
'use_orig': False,
'video_converter': 'ffmpeg',
'video_extensions': ['.mov', '.avi', '.mp4', '.webm', '.ogv', '.3gp'],

4
sigal/templates/sigal.conf.py

@ -182,10 +182,6 @@ ignore_files = []
# Add output filename (see above) to the URLs
# index_in_url = False
# Use CDN for assets (Google fonts, JQuery).
# If False some fonts may not be available.
# use_assets_cdn = True
# A list of links (tuples (title, URL))
# links = [('Example link', 'http://example.org'),
# ('Another link', 'http://example.org')]

4
sigal/themes/colorbox/templates/index.html

@ -108,11 +108,7 @@
{% block footer %}
{% if album.medias %}
{% if settings.use_assets_cdn %}
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
{% else %}
<script src="{{ theme.url }}/js/jquery-2.2.1.min.js"></script>
{% endif %}
<script src="{{ theme.url }}/js/jquery.colorbox-min.js"></script>
<script src="{{ theme.url }}/js/jquery.touchSwipe.min.js"></script>

4
sigal/themes/galleria/templates/index.html

@ -145,11 +145,7 @@
</div>
{% if album.medias %}
{% if settings.use_assets_cdn %}
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
{% else %}
<script src="{{ theme.url }}/jquery-3.3.1.min.js"></script>
{% endif %}
{% if settings.show_map and album.show_map %}
<script src="{{ theme.url }}/leaflet/leaflet.js"></script>
<script src="{{ theme.url }}/leaflet/leaflet-providers.js"></script>

Loading…
Cancel
Save