mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 22:48:18 +00:00
Rebuild JS and some switch stuff for #3826
This commit is contained in:
2
public/v1/js/create_transaction.js
vendored
2
public/v1/js/create_transaction.js
vendored
File diff suppressed because one or more lines are too long
2
public/v1/js/edit_transaction.js
vendored
2
public/v1/js/edit_transaction.js
vendored
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(window.expectedSourceTypes.source[this.ucFirst(transaction.type)]);
|
||||||
// console.log('destination allowed types for a ' + transaction.type);
|
// console.log('destination allowed types for a ' + transaction.type);
|
||||||
// console.log(window.expectedSourceTypes.destination[this.ucFirst(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({
|
this.transactions.push({
|
||||||
transaction_journal_id: transaction.transaction_journal_id,
|
transaction_journal_id: transaction.transaction_journal_id,
|
||||||
|
@@ -172,6 +172,8 @@
|
|||||||
|
|
||||||
{# Java libraries and stuff: #}
|
{# Java libraries and stuff: #}
|
||||||
|
|
||||||
|
{% block definitions %}{% endblock %}
|
||||||
|
|
||||||
{# Moment JS #}
|
{# Moment JS #}
|
||||||
<script src="v1/js/lib/moment.min.js?v={{ FF_VERSION }}" type="text/javascript" nonce="{{ JS_NONCE }}"></script>
|
<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>
|
<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/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>
|
<script type="text/javascript" src="v1/js/ff/intro/intro.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% block scripts %}{% endblock %}
|
{% block scripts %}{% endblock %}
|
||||||
|
|
||||||
{% if config('firefly.tracker_site_id') != '' and config('firefly.tracker_url') != '' %}
|
{% if config('firefly.tracker_site_id') != '' and config('firefly.tracker_url') != '' %}
|
||||||
|
@@ -7,7 +7,9 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="edit_transaction"></div>
|
<div id="edit_transaction"></div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
|
||||||
|
|
||||||
|
{% block definitions %}
|
||||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||||
var allowedOpposingTypes = {{ allowedOpposingTypes|json_encode|raw }};
|
var allowedOpposingTypes = {{ allowedOpposingTypes|json_encode|raw }};
|
||||||
var accountToTypes = {{ accountToTypes|json_encode|raw }};
|
var accountToTypes = {{ accountToTypes|json_encode|raw }};
|
||||||
@@ -18,5 +20,9 @@
|
|||||||
var previousUri = '{{ previousUri }}';
|
var previousUri = '{{ previousUri }}';
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block scripts %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user