Merge branch 'bugfix/getelementbyid-first-dashboard' into 'dev'

Fix an error when there are no servers

See merge request crafty-controller/crafty-4!346
This commit is contained in:
Iain Powrie 2022-06-15 23:30:12 +00:00
commit c22d07d832

View File

@ -835,7 +835,8 @@
"ordering": false, // false to disable sorting (or any other option)
"paging": false
});
document.getElementById('first').setAttribute('draggable', false);
const first = document.querySelector('#first')
first !== null && first.setAttribute('draggable', false);
$('.dataTables_length').addClass('bs-select');
});
/* Search Bar End */
@ -908,4 +909,4 @@
</script>
{% end %}
{% end %}