mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 01:34:34 +02:00
Init datatables even after ajax requests.
This commit is contained in:
parent
6c96d8efad
commit
c0f44b76f3
5 changed files with 53 additions and 42 deletions
|
@ -105,7 +105,7 @@
|
|||
<li role="separator" class="dropdown-divider"></li>
|
||||
<a class="dropdown-item disabled" href="#">{% trans %}user.language_select{% endtrans %}</a>
|
||||
<a class="dropdown-item" data-no-ajax href="{{ path(app.request.attributes.get('_route'),
|
||||
app.request.attributes.get('_route_params')|merge({'_locale': 'en'})) }}">
|
||||
app.request.attributes.get('_route_params')|merge({'_locale': 'en'})) }}">
|
||||
{% trans %}language.english{% endtrans %}</a>
|
||||
<a class="dropdown-item" data-no-ajax href="{{ path(app.request.attributes.get('_route'),
|
||||
app.request.attributes.get('_route_params')|merge({'_locale': 'de'})) }}">
|
||||
|
@ -268,34 +268,9 @@
|
|||
{% block javascripts %}
|
||||
{{ encore_entry_script_tags('app') }}
|
||||
|
||||
<script src="{{ asset('helper/datatables.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$(".toast").toast('show');
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
<script>
|
||||
{#
|
||||
$.getJSON("{{ path("tree_tools") }}",null, function (data) {
|
||||
$('#tree-tools').treeview({
|
||||
data: data,
|
||||
showIcon: false
|
||||
});
|
||||
});
|
||||
|
||||
$.getJSON("{{ path("tree_category", {"id": 1}) }}",null, function (data) {
|
||||
$('#tree-categories').treeview({
|
||||
data: data,
|
||||
showIcon: false,
|
||||
enableLinks: true
|
||||
});
|
||||
});
|
||||
#}
|
||||
</script>
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue