fix: [UI show item min] fix empty modal

pull/463/head
Terrtia 2020-01-20 15:19:55 +01:00
parent 2b735e3b97
commit 9394ed7d43
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 3 additions and 1 deletions

View File

@ -172,13 +172,15 @@ $(document).ready(function(){
$("#navbar-tags").addClass("active");
$("#nav_tags_search").removeClass("text-muted");
$("#nav_tags_search_{{dict_tagged['object_type']}}").addClass("active");
$('#myTable_').DataTable({ "lengthMenu": [ 5, 10, 25, 50, 100 ], "pageLength": 10, "order": [[ 0, "asc" ]] });
{%if dict_tagged["object_type"]=="item"%}
$("[data-toggle='modal']").off('click.openmodal').on("click.openmodal", function (event) {
get_html_and_update_modal(event, $(this));
});
{%endif%}
$('#myTable_').DataTable({ "lengthMenu": [ 5, 10, 25, 50, 100 ], "pageLength": 10, "order": [[ 0, "asc" ]] });
});
</script>