mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Rebuild JS and some switch stuff for #3826
This commit is contained in:
parent
f82e35a8a8
commit
564a387505
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -401,6 +401,9 @@ export default {
|
||||
// console.log(window.expectedSourceTypes.source[this.ucFirst(transaction.type)]);
|
||||
// console.log('destination allowed types for a ' + transaction.type);
|
||||
// console.log(window.expectedSourceTypes.destination[this.ucFirst(transaction.type)]);
|
||||
if(typeof window.expectedSourceTypes === 'undefined') {
|
||||
console.error('window.expectedSourceTypes is unexpectedly empty.')
|
||||
}
|
||||
|
||||
this.transactions.push({
|
||||
transaction_journal_id: transaction.transaction_journal_id,
|
||||
|
@ -172,6 +172,8 @@
|
||||
|
||||
{# Java libraries and stuff: #}
|
||||
|
||||
{% block definitions %}{% endblock %}
|
||||
|
||||
{# Moment JS #}
|
||||
<script src="v1/js/lib/moment.min.js?v={{ FF_VERSION }}" type="text/javascript" nonce="{{ JS_NONCE }}"></script>
|
||||
<script src="v1/js/ff/moment/{{ language }}.js?v={{ FF_VERSION }}" type="text/javascript" nonce="{{ JS_NONCE }}"></script>
|
||||
@ -205,6 +207,7 @@
|
||||
<script type="text/javascript" src="v1/lib/intro/intro.min.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
|
||||
<script type="text/javascript" src="v1/js/ff/intro/intro.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
|
||||
{% endif %}
|
||||
|
||||
{% block scripts %}{% endblock %}
|
||||
|
||||
{% if config('firefly.tracker_site_id') != '' and config('firefly.tracker_url') != '' %}
|
||||
|
@ -7,7 +7,9 @@
|
||||
{% block content %}
|
||||
<div id="edit_transaction"></div>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
|
||||
|
||||
{% block definitions %}
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
var allowedOpposingTypes = {{ allowedOpposingTypes|json_encode|raw }};
|
||||
var accountToTypes = {{ accountToTypes|json_encode|raw }};
|
||||
@ -18,5 +20,9 @@
|
||||
var previousUri = '{{ previousUri }}';
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user