This commit is contained in:
James Cole
2020-01-04 11:00:44 +01:00
parent cb575f3200
commit d83d8d3f97
12 changed files with 42 additions and 38 deletions

View File

@@ -4,7 +4,7 @@
{% endblock %}
{% block content %}
<!-- set location data high up -->
<script type="text/javascript">
<script type="text/javascript" nonce="{{ JS_NONCE }}">
var locations = {{ locations|json_encode|raw }};
var mapboxToken = "{{ config('firefly.mapbox_api_key') }}";
</script>

View File

@@ -6,7 +6,7 @@
{% block content %}
<!-- set location data high up -->
<script type="text/javascript">
<script type="text/javascript" nonce="{{ JS_NONCE }}">
var locations = {{ locations|json_encode|raw }};
var mapboxToken = "{{ config('firefly.mapbox_api_key') }}";
</script>

View File

@@ -75,7 +75,7 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript">
<script type="text/javascript" nonce="{{ JS_NONCE }}">
var objectType = '{{ objectType|escape }}';
</script>
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ FF_VERSION }}"></script>

View File

@@ -93,7 +93,7 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript">
<script type="text/javascript" nonce="{{ JS_NONCE }}">
var what = "{{ what }}";
</script>
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ FF_VERSION }}"></script>

View File

@@ -126,7 +126,7 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript">
<script type="text/javascript" nonce="{{ JS_NONCE }}">
currencySymbol = "{{ currency.symbol }}";
var accountID = {{ account.id }};
var startBalance = {{ startBalance }};
@@ -135,5 +135,5 @@
var overviewUri = '{{ overviewUri }}';
var indexUri = '{{ indexUri }}';
</script>
<script src="v1/js/ff/accounts/reconcile.js?v={{ FF_VERSION }}" type="text/javascript"></script>
<script src="v1/js/ff/accounts/reconcile.js?v={{ FF_VERSION }}" type="text/javascript" nonce="{{ JS_NONCE }}"></script>
{% endblock %}

View File

@@ -156,7 +156,7 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript">
<script type="text/javascript" nonce="{{ JS_NONCE }}">
// location stuff
{% if location %}