aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/rspamd.js
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-31 16:57:53 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-31 16:57:53 +0000
commitb25099829038578d12d5406716847bc630e418a7 (patch)
treec93bda0e1391a5c4a30b5eb1203aad9e38cda2b5 /interface/js/app/rspamd.js
parent44a97d4993c03ba868b1e7d70b4a1351ecca7732 (diff)
downloadrspamd-b25099829038578d12d5406716847bc630e418a7.tar.gz
rspamd-b25099829038578d12d5406716847bc630e418a7.zip
[WebUI] Fix retarded datatables
Diffstat (limited to 'interface/js/app/rspamd.js')
-rw-r--r--interface/js/app/rspamd.js20
1 files changed, 6 insertions, 14 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index a7d3f4156..b827f79ad 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -22,8 +22,8 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-define(['jquery', 'd3pie', 'visibility', 'bootstrap'],
- function ($, d3pie, visibility, DataTable) {
+define(['jquery', 'd3pie', 'visibility', 'app/stats', 'app/graph'],
+ function ($, d3pie, visibility, tab_stat, tab_graph) {
// begin
var graphs = {};
var tables = {};
@@ -84,28 +84,20 @@ define(['jquery', 'd3pie', 'visibility', 'bootstrap'],
switch (tab_id) {
case "#status_nav":
- require(['app/stats'], function(stats) {
- stats.statWidgets(interface, graphs, checked_server);
- });
+ tab_stat.statWidgets(interface, graphs, checked_server);
timer_id.status = Visibility.every(10000, function () {
- require(['app/stats'], function(stats) {
- stats.statWidgets(interface, graphs, checked_server);
- });
+ tab_stat.statWidgets(interface, graphs, checked_server);
});
break;
case "#throughput_nav":
- require(['app/graph'], function(graph) {
- graph.draw(interface, graphs, checked_server, selData);
- });
+ tab_graph.draw(interface, graphs, checked_server, selData);
var autoRefresh = {
hourly: 60000,
daily: 300000
};
timer_id.throughput = Visibility.every(autoRefresh[selData] || 3600000, function () {
- require(['app/graph'], function(graph) {
- graph.draw(interface, graphs, checked_server, selData);
- });
+ tab_graph.draw(interface, graphs, checked_server, selData);
});
break;
case "#configuration_nav":