From 477e37d15cb56ac5a3305dc4fdf45bf2fa7ad3ec Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Mon, 4 Aug 2014 16:26:08 +0300 Subject: HTML: don't replot the graph if not plotted before. Prevent plotting the graph when screen is resized before the graph is plotted for the first time. Signed-off-by: Gehad elrobey Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- theme/list_lib.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'theme') diff --git a/theme/list_lib.js b/theme/list_lib.js index be2f969d5..684d92e13 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -1205,5 +1205,6 @@ function switchDives(e) } window.onresize = function(event) { - plot1.replot( { resetAxes: true } ); + if (plot1) + plot1.replot( { resetAxes: true } ); }; -- cgit v1.2.3-70-g09d2