diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-08-04 16:26:08 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-04 10:03:17 -0700 |
commit | 477e37d15cb56ac5a3305dc4fdf45bf2fa7ad3ec (patch) | |
tree | 6db414cefdb7a249f51de11659654b7c62bafe95 /theme | |
parent | e968d91943bbcaf25cd3a1df84fc4d09bc889c94 (diff) | |
download | subsurface-477e37d15cb56ac5a3305dc4fdf45bf2fa7ad3ec.tar.gz |
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 <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'theme')
-rw-r--r-- | theme/list_lib.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 } ); }; |