mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 01:24:05 +01:00
template: supply data-resource-version to main.js
This commit is contained in:
parent
3c5484a7c2
commit
6b60f841d4
@ -12,7 +12,7 @@
|
||||
var modRoot = "{{ config.root }}" + (inMod ? "mod.php?/" : "");
|
||||
</script>
|
||||
{% if not nojavascript %}
|
||||
<script type="text/javascript" src="{{ config.url_javascript }}?v={{ config.resource_version }}"></script>
|
||||
<script type="text/javascript" src="{{ config.url_javascript }}?v={{ config.resource_version }} data-resource-version="{{ config.resource_version }}"></script>
|
||||
{% if not config.additional_javascript_compile %}
|
||||
{% for javascript in config.additional_javascript %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}?v={{ config.resource_version }}"></script>{% endfor %}
|
||||
{% endif %}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<script src='main.js?v={{ config.resource_version }}'></script>
|
||||
<script src='main.js?v={{ config.resource_version }}' data-resource-version="{{ config.resource_version }}"></script>
|
||||
<script src='js/jquery.min.js?v={{ config.resource_version }}'></script>
|
||||
<script src='js/mobile-style.js?v={{ config.resource_version }}'></script>
|
||||
<script src='js/strftime.min.js?v={{ config.resource_version }}'></script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user