From c2da055b605210e2637f0aabf93bbfac792a7f33 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Mon, 15 May 2017 18:59:18 -0300 Subject: [PATCH] Remove duplicate ws updates --- kfet/templates/kfet/account_read.html | 6 ------ kfet/templates/kfet/history.html | 8 -------- kfet/templates/kfet/transfers.html | 6 ------ 3 files changed, 20 deletions(-) diff --git a/kfet/templates/kfet/account_read.html b/kfet/templates/kfet/account_read.html index 3183fdc4..0ea0bdaa 100644 --- a/kfet/templates/kfet/account_read.html +++ b/kfet/templates/kfet/account_read.html @@ -108,12 +108,6 @@ $(document).ready(function() { khistory.selection.reset(); }); - // ----- - // Synchronization - // ----- - - OperationWebSocket.add_handler((data) => khistory.update_data(data)); - Config.reset(() => khistory.fetch({'accounts': [{{account.pk}}]})); }); diff --git a/kfet/templates/kfet/history.html b/kfet/templates/kfet/history.html index 4d711f47..51dcac38 100644 --- a/kfet/templates/kfet/history.html +++ b/kfet/templates/kfet/history.html @@ -136,14 +136,6 @@ $(document).ready(function() { khistory.selection.reset(); }); - // ----- - // Synchronization - // ----- - - OperationWebSocket.add_handler(data => khistory.update_data(data)); - - - Config.reset(updateHistory); }); diff --git a/kfet/templates/kfet/transfers.html b/kfet/templates/kfet/transfers.html index 4acd737f..500fcbc6 100644 --- a/kfet/templates/kfet/transfers.html +++ b/kfet/templates/kfet/transfers.html @@ -57,12 +57,6 @@ $(document).ready(function() { khistory.selection.reset(); }); - // ----- - // Synchronization - // ----- - - OperationWebSocket.add_handler((data) => khistory.update_data(data)); - Config.reset(() => khistory.fetch({'transfersonly': true})); });