fix assignment in template

This commit is contained in:
Daniel Seifert 2024-05-13 15:35:07 +02:00
parent 76d72c8546
commit 9f2a97c560

View File

@ -29,7 +29,7 @@
} }
</style> </style>
{% capture name = "d3script" %}{% apply spaceless %} {% capture assign = "d3script" %}{% apply spaceless %}
function startTask(id, format = '') { function startTask(id, format = '') {
let elements = document.getElementsByClassName('errorbox'); let elements = document.getElementsByClassName('errorbox');
for (var i = 0; i < elements.length; i++){ for (var i = 0; i < elements.length; i++){
@ -46,6 +46,7 @@
document.getElementById('myedit').submit(); document.getElementById('myedit').submit();
} }
{% endapply %}{% endcapture %} {% endapply %}{% endcapture %}
{{ script({ add: d3script, dynamic: __oxid_include_dynamic }) }} {{ script({ add: d3script, dynamic: __oxid_include_dynamic }) }}
<form name="myedit" id="myedit" action="{{ oViewConf.getSelfLink() }}" method="post" style="padding: 0;margin: 0;height:0;"> <form name="myedit" id="myedit" action="{{ oViewConf.getSelfLink() }}" method="post" style="padding: 0;margin: 0;height:0;">