aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/rspamd.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/js/app/rspamd.js')
-rw-r--r--interface/js/app/rspamd.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index c60c5889d..b935cf6c2 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -22,6 +22,9 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
+
+/* global jQuery:false, Visibility:false */
+
define(["jquery", "d3pie", "visibility", "app/stats", "app/graph", "app/config",
"app/symbols", "app/history", "app/upload"],
function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
@@ -47,27 +50,27 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
function disconnect() {
if (graphs.chart) {
graphs.chart.destroy();
- graphs.chart = undefined;
+ delete graphs.chart;
}
if (graphs.rrd_pie) {
graphs.rrd_pie.destroy();
- graphs.rrd_pie = undefined;
+ delete graphs.rrd_pie;
}
if (graphs.graph) {
graphs.graph.destroy();
- graphs.graph = undefined;
+ delete graphs.graph;
}
if (tables.history) {
tables.history.destroy();
- tables.history = undefined;
+ delete tables.history;
}
if (tables.errors) {
tables.errors.destroy();
- tables.errors = undefined;
+ delete tables.errors;
}
if (tables.symbols) {
tables.symbols.destroy();
- tables.symbols = undefined;
+ delete tables.symbols;
}
stopTimers();
@@ -144,7 +147,6 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
$("#historyLog tbody").remove();
$("#errorsLog tbody").remove();
$("#symbolsTable tbody").remove();
- password = "";
}
function isLogged() {