]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Enable throughput graph show
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 1 Jul 2016 16:37:13 +0000 (17:37 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 1 Jul 2016 16:37:13 +0000 (17:37 +0100)
interface/index.html
interface/js/rspamd.js

index c121f69e1c03f48f2857d5530689accb3a13530a..70f3e987a4db28216f2cc6cdee970d7b589b98e6 100644 (file)
@@ -26,9 +26,9 @@
                </ul>
                <ul class="nav navbar-nav nav-pills" role="tablist">
                        <li role="presentation" class="active"><a id="status_nav" aria-controls="status" role="tab" href="#status" data-toggle="tab">Status</a></li>
-<!--
+
                        <li role="presentation"><a id="throughput_nav" aria-controls="throughput" role="tab" href="#throughput" data-toggle="tab">Throughput</a></li>
--->
+
                        <li role="presentation"><a id="configuration_nav" aria-controls="configuration" role="tab" href="#configuration" data-toggle="tab">Configuration</a></li>
                        <li role="presentation"><a id="learning_nav" aria-controls="learning" role="tab" href="#learning" data-toggle="tab">Learning</a></li>
                        <li role="presentation"><a id="scan_nav"aria-controls="scan" role="tab"  href="#scan" data-toggle="tab">Scan</a></li>
index fbb798b5f989a0121fbe2981eccde91b35af57b0..bf860b238a5300bc21d72e8955f935b9ffc6a593 100644 (file)
             $.ajax({
                 dataType: 'json',
                 type: 'GET',
-                url: 'graph?type=',
-                data: type,
+                url: 'graph',
+                data: {"type": type},
                 beforeSend: function (xhr) {
                     xhr.setRequestHeader('Password', getPassword());
                 },