Verified Commit 68be104d by Ziirish

add: fixed table headers while scrolling

parent eab067a0
Pipeline #1253 passed with stage
in 1 minute 19 seconds
Subproject commit 69230a5c43e35616c6ab0b3fa0541f221b66571d
Subproject commit 024e5798fc139db8e73388a6d7ca7ae083d61d1c
......@@ -80,6 +80,7 @@ $( document ).ready(function() {
return $.getJSON(url, function(data) {
$("#waiting-container").hide();
$("#tree-container").show();
return data;
})
.fail(myFail);
......@@ -101,6 +102,13 @@ $( document ).ready(function() {
data.node.fixSelection3AfterClick();
}
},
init: function() {
$('#tree').floatThead({
position: 'auto',
autoReflow: true,
top: $('.navbar').height(),
});
},
scrollParent: $(window),
renderColumns: function(event, data) {
var node = data.node;
......
......@@ -63,6 +63,7 @@ var _client_table = $('#table-client').DataTable( {
{{ macros.get_page_length() }}
responsive: true,
processing: true,
fixedHeader: true,
ajax: {
url: '{{ url_for("api.client_stats", name=cname, server=server) }}',
headers: { 'X-From-UI': true },
......
......@@ -60,6 +60,7 @@ var _clients_table = $('#table-clients').DataTable( {
{{ macros.get_page_length() }}
responsive: true,
processing: true,
fixedHeader: true,
ajax: {
url: '{{ url_for("api.clients_stats", server=server) }}',
dataSrc: function (data) {
......
......@@ -14,6 +14,7 @@ var _servers_table = $('#table-servers').DataTable( {
{{ macros.get_page_length() }}
responsive: true,
processing: true,
fixedHeader: true,
ajax: {
url: '{{ url_for("api.servers_stats") }}',
dataSrc: function (data) {
......
......@@ -168,6 +168,7 @@ var _sessions_table = $('#table-sessions').DataTable( {
{{ macros.get_page_length() }}
responsive: true,
processing: true,
fixedHeader: true,
select: {
style: 'os',
},
......
......@@ -19,6 +19,7 @@
{% if not report -%}
<link href="{{ url_for('bower.static', filename='datatables.net-bs/css/dataTables.bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ url_for('bower.static', filename='datatables.net-responsive-bs/css/responsive.bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ url_for('bower.static', filename='datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css') }}" rel="stylesheet">
{% if me -%}
<link href="{{ url_for('bower.static', filename='datatables.net-select-bs/css/select.bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ url_for('bower.static', filename='datatables.net-buttons-bs/css/buttons.bootstrap.min.css') }}" rel="stylesheet">
......@@ -85,6 +86,7 @@
<script src="{{ url_for('bower.static', filename='datatables.net-bs/js/dataTables.bootstrap.min.js') }}"></script>
<script src="{{ url_for('bower.static', filename='datatables.net-responsive/js/dataTables.responsive.min.js') }}"></script>
<script src="{{ url_for('bower.static', filename='datatables.net-responsive-bs/js/responsive.bootstrap.min.js') }}"></script>
<script src="{{ url_for('bower.static', filename='datatables.net-fixedheader/js/dataTables.fixedHeader.min.js') }}"></script>
{% if me -%}
<script src="{{ url_for('bower.static', filename='datatables.net-select/js/dataTables.select.min.js') }}"></script>
<script src="{{ url_for('bower.static', filename='datatables.net-buttons/js/dataTables.buttons.min.js') }}"></script>
......@@ -104,6 +106,7 @@
<!-- Fancytree Javascript
================================================== -->
{# <script src="{{ url_for('bower.static', filename='js-cookie/src/js.cookie.js') }}"></script> -#}
<script src="{{ url_for('bower.static', filename='jquery.floatThead/dist/jquery.floatThead.min.js') }}"></script>
<script src="{{ url_for('bower.static', filename='jquery.fancytree/dist/jquery.fancytree-all.min.js') }}"></script>
<!-- FileDownload Javascript
================================================== -->
......
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="navbar navbar-inverse navbar-fixed-top fh-fixedHeader" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
......
......@@ -31,6 +31,7 @@ VENDOR_TO_KEEP = [
'burpui/static/vendor/datatables.net-responsive-bs/css/responsive.bootstrap.min.css',
'burpui/static/vendor/datatables.net-select-bs/css/select.bootstrap.min.css',
'burpui/static/vendor/datatables.net-buttons-bs/css/buttons.bootstrap.min.css',
'burpui/static/vendor/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css',
'burpui/static/vendor/jquery.fancytree/dist/skin-bootstrap/ui.fancytree.min.css',
'burpui/static/vendor/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css',
'burpui/static/vendor/ui-select/dist/select.min.css',
......@@ -47,6 +48,8 @@ VENDOR_TO_KEEP = [
'burpui/static/vendor/datatables.net-select/js/dataTables.select.min.js',
'burpui/static/vendor/datatables.net-buttons/js/dataTables.buttons.min.js',
'burpui/static/vendor/datatables.net-buttons-bs/js/buttons.bootstrap.min.js',
'burpui/static/vendor/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js',
'burpui/static/vendor/jquery.floatThead/dist/jquery.floatThead.min.js',
'burpui/static/vendor/jquery.fancytree/dist/jquery.fancytree-all.min.js',
'burpui/static/vendor/jquery-file-download/src/Scripts/jquery.fileDownload.js',
'burpui/static/vendor/lodash/dist/lodash.min.js',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment