diff --git a/app/frontend/templates/panel/dashboard.html b/app/frontend/templates/panel/dashboard.html index 7de22880..aad659e0 100644 --- a/app/frontend/templates/panel/dashboard.html +++ b/app/frontend/templates/panel/dashboard.html @@ -133,7 +133,7 @@ - + {% if server['user_command_permission'] %} {% if server['stats']['running'] %} - +
+
+ {{ server['stats']['world_size'] }} - + {% if server['stats']['int_ping_results'] %} {{ server['stats']['online'] }} / {{ server['stats']['max'] }} {{ translate('dashboard', 'max', data['lang']) }}
@@ -237,7 +237,7 @@ {% end %} - + {% if server['stats']['running'] %} {{ translate('dashboard', 'online', data['lang']) }} @@ -651,20 +651,20 @@ document.getElementById('first').setAttribute('draggable', false); $('.dataTables_length').addClass('bs-select'); }); - $('#servers_table').on('search.dt', function() { - let value = $('.dataTables_filter input').val() - if(value === ''){ - const table = document.querySelector("table"); - for (const row of table.rows) { - row.setAttribute('draggable', true) - } - }else{ - const table = document.querySelector("table"); - for (const row of table.rows) { - row.setAttribute('draggable', false) - } + $(document).mousedown(function( event ) { + let value = $('.dataTables_filter input').val() + if(value === ''){ + const table = document.querySelector("table"); + for (const row of table.rows) { + row.setAttribute('draggable', true) } - } ); + }else{ + const table = document.querySelector("table"); + for (const row of table.rows) { + row.setAttribute('draggable', false) + } + } +} ); {% end %}