Various Javascript related fixes.

This commit is contained in:
James Cole
2016-11-25 16:54:13 +01:00
parent b34e4cd31b
commit 6c9990e0be
7 changed files with 18 additions and 16 deletions

View File

@@ -39,7 +39,7 @@
{% block scripts %}
<script type="text/javascript">
var what = '{{ what }}';
var what = '{{ what|escape }}';
</script>
<script type="text/javascript" src="js/lib/bootstrap-sortable.js"></script>
{% endblock %}

View File

@@ -91,7 +91,7 @@
{% block scripts %}
<script type="text/javascript">
var accountID = {{ account.id }};
var dateString = "{{ date }}";
var dateString = "{{ date|escape }}";
// uri's for charts:
var incomeByCategoryUri = '{{ route('chart.account.incomeByCategory', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';