Run the JS code to make build trees collapsible at the right time

This commit is contained in:
K900
2022-08-11 13:30:19 +03:00
parent 2b1c1e65d5
commit 74caaa696e
3 changed files with 23 additions and 14 deletions

View File

@ -520,7 +520,11 @@ BLOCK makeLazyTab %]
<center><span class="spinner-border spinner-border-sm"/></center>
</div>
<script>
$(function() { makeLazyTab("[% tabName %]", "[% uri %]"); });
[% IF callback.defined %]
$(function() { makeLazyTab("[% tabName %]", "[% uri %]", [% callback %] ); });
[% ELSE %]
$(function() { makeLazyTab("[% tabName %]", "[% uri %]", null ); });
[% END %]
</script>
[% END;